commit | e9d7445acea438b731273ac91114426bf1e5056c | [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 | 4c6c7c8d44a2a8892efb93258b26f2d6c736810b | |
parent | 1837beb08d3b7f1ddd68bff1969e66a57f104075 [diff] [blame] |
force explicit instantiation of Singleton<> objects
diff --git a/include/utils/Singleton.h b/include/utils/Singleton.h index 2f7c7c2..bc7626a8 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);