hi,
I'm having troubles with the following class declaration:
Code:
template <class TYPE> class LList
{
public:
LList();
~LList();
TYPE* obj;
LList<TYPE>* next, prev;
LList<TYPE>* Add(TYPE* nObj);
LList<TYPE>* Insert(TYPE *nObj);
void Remove();
};
The compiler (MSVC8 Express) complains that :
Code:
helpers.cpp(13) : error C2460: 'LList<TYPE>::prev' : uses 'LList<TYPE>', which is being defined
But, i'm sure i've included member pointers in this way in a non templated class before. Can anyone shed any light on this?
thanks in advance