This commit is contained in:
朱子楚\zhuzi 2023-12-30 20:34:14 +08:00
parent 1450016c69
commit c123db97b7

View File

@ -44,4 +44,10 @@ private: \
return Singleton<Class>::getInstance(); \ return Singleton<Class>::getInstance(); \
} }
#define HIDE_CONSTRUCTOR(Class) \
private: \
Class() = default; \
Class(const Class& other) = delete; \
Class& operator=(const Class& other) = delete;
#endif // SINGLETON_H #endif // SINGLETON_H