commit | 0669fbb12a89c80b4cbb64e91fd3110c2965a20f | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Thu May 28 12:31:31 2009 -0700 |
committer | Mathias Agopian <mathias@google.com> | Thu May 28 12:31:31 2009 -0700 |
tree | ceaa253840f98e73cc3f132ce34e239efd891075 | |
parent | 1c4ec71612bae05467fedbbebce37f5330a2b18c [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);