hi,
I'm having troubles with the following class declaration:
The compiler (MSVC8 Express) complains that :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(); };
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?Code:helpers.cpp(13) : error C2460: 'LList<TYPE>::prev' : uses 'LList<TYPE>', which is being defined
thanks in advance![]()



LinkBack URL
About LinkBacks




CornedBee