I put the title into the search engine and it turned up very little. Ok so I only looked at the first page but I'm tired.
Here's the class - don't ask what it does because I don't know, I'm just fiddling with some hashing (thanks to Prelude for the tut. on her site):
Code:
template <class T> class database {
public:
database (int max_index_data);
~database ();
private:
const int MAX_INDEX_DATA;
unsigned index[MAX_INDEX_DATA];
T data[MAX_INDEX_DATA];
};
template <class T> database<T>::database (int max_index_data)
:MAX_INDEX_DATA(max_index_data)
{
}
template <class T> database<T>::~database ()
{
}
Here are the errors which disgraced my output window
Code:
------ Build started: Project: database_bollocks, Configuration: Debug Win32 ------
Compiling...
database_bollocks.cpp
c:\Documents and Settings\lee\Desktop\database_bollocks\database_bollocks.cpp(14) : error C2327: 'database<T>::MAX_INDEX_DATA' : is not a type name, static, or enumerator
c:\Documents and Settings\lee\Desktop\database_bollocks\database_bollocks.cpp(16) : see reference to class template instantiation 'database<T>' being compiled
c:\Documents and Settings\lee\Desktop\database_bollocks\database_bollocks.cpp(14) : error C2065: 'MAX_INDEX_DATA' : undeclared identifier
c:\Documents and Settings\lee\Desktop\database_bollocks\database_bollocks.cpp(15) : error C2327: 'database<T>::MAX_INDEX_DATA' : is not a type name, static, or enumerator
c:\Documents and Settings\lee\Desktop\database_bollocks\database_bollocks.cpp(15) : error C3861: 'MAX_INDEX_DATA': identifier not found, even with argument-dependent lookup
Build Time 0:00
Build log was saved at "file://c:\Documents and Settings\lee\Desktop\database_bollocks\Debug\BuildLog.htm"
database_bollocks - 4 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
Sorry for the slightly profane project name.