From 40f3c3f66f532941ca9576852827d636000f2477 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 19 Dec 2020 12:20:43 +0100 Subject: Clean up special member functions --- test/maid_test.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/maid_test.cpp') 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 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; } -- cgit v1.2.1