I am expanding the template class using C ++ in Visual Studio 2005. This gives me an error when I try to extend the base class of the template:
template <class K, class D>
class RedBlackTreeOGL : public RedBlackTree<K, D>::RedBlackTree
{
public:
RedBlackTreeOGL();
~RedBlackTreeOGL();
and the second error when trying to instantiate an object:
RedBlackTreeOGL<double, std::string> *tree = new RedBlackTreeOGL<double, std::string>;
Error 1:
** redblacktreeopengl.hpp (27): error C2039: '{ctor}': is not a member of 'RedBlackTree' with [K = double, D = std :: string] **
Error 2:
main.cpp (50): see the link to the compiled class template instance 'RedBlackTreeOGL' compiled
source
share