Skip to content
Snippets Groups Projects
Commit 459a07a3 authored by pospelov's avatar pospelov
Browse files

bug in ISingleton - two virtual destructor

parent 39517df2
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,8 @@ public:
return *m_instance;
}
protected:
ISingleton(){}
virtual ~ISingleton()
{
std::cout << "ISingleton::~ISingleton() -> Deleting singleton" << std::endl;
......@@ -47,10 +49,6 @@ public:
m_destroyed = true;
}
protected:
ISingleton(){}
virtual ~ISingleton();
static void create_singleton()
{
static T theInstance;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment