Commit dbfc4abf authored by Max Kellermann's avatar Max Kellermann

thread/SafeSingleton: disallow copying

parent 55443750
......@@ -58,6 +58,9 @@ public:
delete std::exchange(instance, nullptr);
}
SafeSingleton(const SafeSingleton &) = delete;
SafeSingleton &operator=(const SafeSingleton &) = delete;
T *get() {
return instance;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment