diff --git a/src/singleton.h b/src/singleton.h index ef685f96..f6f25892 100644 --- a/src/singleton.h +++ b/src/singleton.h @@ -44,4 +44,10 @@ private: \ return Singleton::getInstance(); \ } +#define HIDE_CONSTRUCTOR(Class) \ +private: \ + Class() = default; \ + Class(const Class& other) = delete; \ + Class& operator=(const Class& other) = delete; + #endif // SINGLETON_H