2 #include "../acl_cpp_define.hpp" 34 #if defined(_WIN32) || defined(_WIN64) 35 # pragma warning(push) 36 # pragma warning(disable : 4511 4512) 86 static bool& get_lock()
88 static bool lock_ =
false;
140 return static_cast<T &>(t);
151 static void use(T
const &) {}
180 template <
typename T>
184 struct object_creator
187 inline void do_nothing()
const {};
189 static object_creator create_object;
196 create_object.do_nothing();
201 template <
typename T>
202 typename singleton2<T>::object_creator singleton2<T>::create_object;
204 #if defined(_WIN32) || defined(_WIN64)
static T & get_instance()
static bool is_destroyed()
static object_type & get_instance()