C++ Non-Integral template Const Initialization expected init-declarator before ClassName
问题 I am trying to Initialize a Non-Integral template Constant. Please find below the code: #ifndef _EXETENDED_CLASS_H #define _EXETENDED_CLASS_H template<class T> class BaseClass { public: BaseClass(); ~BaseClass(); }; template <class T> BaseClass<T>::BaseClass() {} template <class T> BaseClass<T>::~BaseClass() {} template<class T> class ExtendedClass:public BaseClass<T> { public: typedef ExtendedClass<T>* position; static const position NULLPOSITION; ExtendedClass(); ~ExtendedClass(); private: