From e9d7445acea438b731273ac91114426bf1e5056c Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 28 May 2009 12:31:31 -0700 Subject: [PATCH] force explicit instantiation of Singleton<> objects --- include/utils/Singleton.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/utils/Singleton.h b/include/utils/Singleton.h index 2f7c7c2dbf258..bc7626a821398 100644 --- a/include/utils/Singleton.h +++ b/include/utils/Singleton.h @@ -57,6 +57,7 @@ private: */ #define ANDROID_SINGLETON_STATIC_INSTANCE(TYPE) \ + template class Singleton< TYPE >; \ template< class TYPE > Mutex Singleton< TYPE >::sLock; \ template<> TYPE* Singleton< TYPE >::sInstance(0);