From a0268bf729fadf405fd9d63405a06ffdda9d83fa Mon Sep 17 00:00:00 2001 From: syntheticpp Date: Thu, 2 Aug 2007 19:36:10 +0000 Subject: [PATCH] initialize static singleton data, thx to Peter Long git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@834 7ec92016-0320-0410-acc4-a06ded1c099a --- include/loki/Singleton.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/loki/Singleton.h b/include/loki/Singleton.h index 447b1ec..83da01e 100644 --- a/include/loki/Singleton.h +++ b/include/loki/Singleton.h @@ -759,7 +759,7 @@ namespace Loki class X > typename SingletonHolder::PtrInstanceType - SingletonHolder::pInstance_; + SingletonHolder::pInstance_ = 0; template < @@ -769,7 +769,7 @@ namespace Loki template class M, class X > - bool SingletonHolder::destroyed_; + bool SingletonHolder::destroyed_ = false; //////////////////////////////////////////////////////////////////////////////// // SingletonHolder::Instance