Strange CTypedPtrArray error
-
I have this class declared as -------------------------------------------------------------------
class CMyArray : public CTypedPtrArray< CObArray, CMyDataClass* > { public: ... CMyArray(); virtual ~CMyArray(); protected: ... };
------------------------------------------------------------------- where the CMyDataClass is declared as -------------------------------------------------------------------class CMyDataClass:public CObject { public: CMyDataClass( ); virtual ~CMyDataClass( ); ... protected: ... };
------------------------------------------------------------------- Upon compile I get this error: error C2653: 'CMyArray' : is not a class or namespace name What?! The strangest thing is that I have other classes defined in the exact same way, compiling without problems. I searched the documentation using the error code for keyword and found some vague references to this being a known bug, but I could not work out a solution from the text. Obviously, I am doing something wrong with the CMyDataClass, since I do get the exact same construction to work with other generic classes. ------------------------------------------------------------ "Pooollyyy!! ...Polly Parrot! Wakey-wakey!"