Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0669fbb1 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

force explicit instantiation of Singleton<> objects

parent 1c4ec716
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);