update
This commit is contained in:
parent
1450016c69
commit
c123db97b7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue