diff --git a/src/thread/SafeSingleton.hxx b/src/thread/SafeSingleton.hxx index 386c1f376..ac7ff13a9 100644 --- a/src/thread/SafeSingleton.hxx +++ b/src/thread/SafeSingleton.hxx @@ -58,6 +58,9 @@ public: delete std::exchange(instance, nullptr); } + SafeSingleton(const SafeSingleton &) = delete; + SafeSingleton &operator=(const SafeSingleton &) = delete; + T *get() { return instance; }