diff options
| -rw-r--r-- | include/astra/Singleton.h | 6 | 
1 files changed, 1 insertions, 5 deletions
| diff --git a/include/astra/Singleton.h b/include/astra/Singleton.h index 784c521..9d3c088 100644 --- a/include/astra/Singleton.h +++ b/include/astra/Singleton.h @@ -45,11 +45,7 @@ class Singleton {  	public:  		// constructor -		Singleton() { -			assert(!m_singleton); -			int offset = (uintptr_t)(T*)1 - (uintptr_t)(Singleton<T>*)(T*)1; -			m_singleton = (T*)((uintptr_t)this + offset); -		}; +		Singleton() { }  		// destructor  		virtual ~Singleton() { | 
