I have a functioning class using templates but it is only working when I put everything into the .h, as I have below. I would like to split this into a .h and a .cpp file but I keep getting errors when I do. Anyone know how to use the .cpp and .h?
template <class T>
class CMyTypedPtrList: public CPtrList
BOOL CompareHead(const T searchValue) const
T pHead = (T) GetHead();
if ( *searchValue == *pHead)