From 459a07a3c050db70ccf10dc4972bfcea91507c77 Mon Sep 17 00:00:00 2001 From: pospelov <pospelov@fz-juelich.de> Date: Wed, 27 Jun 2012 14:55:57 +0200 Subject: [PATCH] bug in ISingleton - two virtual destructor --- Core/Tools/inc/ISingleton.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Core/Tools/inc/ISingleton.h b/Core/Tools/inc/ISingleton.h index 0acaa8aad47..cc3fc34d62f 100644 --- a/Core/Tools/inc/ISingleton.h +++ b/Core/Tools/inc/ISingleton.h @@ -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; -- GitLab