I want to using singletone template on my project. but, some singletone template don't work on my project and it is don't reasonable another platform.
- singletone using for your project
- import singletone.hpp
- on my class using inheritance of singletone template
- same as inhertance but don't using it.
- just using below.
need to below in class header file.
typedef Singleton<Logger> LoggerSingleton;
LoggerSingleton::GetSingleton().init(1, "hong");
int n1 = LoggerSingleton::GetSingleton().getNumber();
char *name1 = LoggerSingleton::GetSingleton().getName();