G
Guest
I am writing a container class so that I can reuse my double ended list
code. I have a base class CListBase that handles inserts and deletes with a
member function addItem, defined as:
template<class T>
class CListBase
{
CListBase<T>::CListBase();
virtual CListBase<T>::~CListBase();
void addItem ( T item);
...
};
when I create a derived class to store entries :
class CSymList : public CListBase<class CSymlist Entry*> { ... } ;
and try to compile I get linker errors "unresolved external symbol" for the
constructor, destructor. and member function addItem. What am I missing? -gsw
code. I have a base class CListBase that handles inserts and deletes with a
member function addItem, defined as:
template<class T>
class CListBase
{
CListBase<T>::CListBase();
virtual CListBase<T>::~CListBase();
void addItem ( T item);
...
};
when I create a derived class to store entries :
class CSymList : public CListBase<class CSymlist Entry*> { ... } ;
and try to compile I get linker errors "unresolved external symbol" for the
constructor, destructor. and member function addItem. What am I missing? -gsw