Re: Problem with templates
Is the sourcecode of your templateclass written in the headerfile of your template ?
Re: Problem with templates
All the code for the template class itself is in the header file.
To specify the problem: I have a class template called CTree <T>, which implements a generic tree. In another class, say CXYTree, I instantiate it with a member variable:
CTree<struct Something> m_tMem.
The linker error occurs when I try to use a member of CXYTree in my document, e.g. CXYTree::AddNode(...). The linker then complains that the symbol CXYTree::AddNode(Something const &) is not defined.
Re: Problem with templates
You have to call the method of your member variable:
m_tMem.AddNode(...);