diff options
Diffstat (limited to 'test/maid_test.cpp')
-rw-r--r-- | test/maid_test.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/maid_test.cpp b/test/maid_test.cpp index 47781a0..c4b2dad 100644 --- a/test/maid_test.cpp +++ b/test/maid_test.cpp @@ -37,6 +37,13 @@ static std::atomic<size_t> n_finished_threads(0); class Junk : public Maid::Disposable { public: explicit Junk(size_t v) : _val(v) { ++n_junk; } + + Junk(const Junk&) = delete; + Junk& operator=(const Junk&) = delete; + + Junk(Junk&&) = delete; + Junk& operator=(Junk&&) = delete; + ~Junk() override { --n_junk; } size_t value() const { return _val; } |