Thread/Thread: disallow copying
This commit is contained in:
parent
050f81c4fe
commit
af64bd5088
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue