Original Post
Hi there.
I want to create a template class CDatabase, which inside has an std::map .
So, for example, creating a CDatabase with a string as key, it would be
std::map something;
so far, i got this:
Alas, it does not work. It gives out:
/home/rhiakath/Programming/Database/Source/KeyDatabase.h:14: error: type 'std::map, std::allocator > >' is not derived from type 'Database::CKeyDatabase'
What's wrong here?
Thanks
[Edited by - ApochPiQ on June 17, 2010 3:57:08 PM]
I want to create a template class CDatabase
So, for example, creating a CDatabase with a string as key, it would be
std::map
so far, i got this:
template <typename Type> class CKeyDatabase { public: typedef std::map <Type, void*> TDBMap;Alas, it does not work. It gives out:
/home/rhiakath/Programming/Database/Source/KeyDatabase.h:14: error: type 'std::map
What's wrong here?
Thanks
[Edited by - ApochPiQ on June 17, 2010 3:57:08 PM]