commit | 624756e7ede9e9f64f7f2a0b85c29b213ef3d26f | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Thu May 28 12:31:31 2009 -0700 |
committer | Alex Ray <aray@google.com> | Tue Jul 30 13:56:50 2013 -0700 |
tree | 4b6683404add4f3c159013fcc084a51040fafa9d | |
parent | 69197b60200c571cc43b0e8726ed8f1e18c39882 [diff] |
force explicit instantiation of Singleton<> objects
diff --git a/include/utils/Singleton.h b/include/utils/Singleton.h index 2f7c7c2..bc7626a 100644 --- a/include/utils/Singleton.h +++ b/include/utils/Singleton.h
@@ -57,6 +57,7 @@ */ #define ANDROID_SINGLETON_STATIC_INSTANCE(TYPE) \ + template class Singleton< TYPE >; \ template< class TYPE > Mutex Singleton< TYPE >::sLock; \ template<> TYPE* Singleton< TYPE >::sInstance(0);