Thread/Thread: disallow copying

This commit is contained in:
Max Kellermann 2018-09-21 16:54:42 +02:00
parent 050f81c4fe
commit af64bd5088
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ public:
explicit Thread(Function _f) noexcept:f(_f) {}
Thread(const Thread &) = delete;
Thread &operator=(const Thread &) = delete;
#ifndef NDEBUG
~Thread() noexcept {