thread/SafeSingleton: disallow copying

This commit is contained in:
Max Kellermann 2018-01-02 12:38:35 +01:00
parent 5544375002
commit dbfc4abfd6

View File

@ -58,6 +58,9 @@ public:
delete std::exchange(instance, nullptr);
}
SafeSingleton(const SafeSingleton &) = delete;
SafeSingleton &operator=(const SafeSingleton &) = delete;
T *get() {
return instance;
}