I\'m trying to implement this singleton class. But I encountered this error:
\'Singleton::~Singleton\': cannot access private member declared in class \'Singleton\'
class Singleton { static Singleton *pInstance = NULL; Singleton(){}; public: static Singleton * GetInstance() { if(!pInstance) { pInstance = new Singleton(); } return pInstance; } static void RemoveInstance() { if(pInstance) { delete pInstance; pInstance = NULL; } } };