diff options
author | David Robillard <d@drobilla.net> | 2020-12-19 12:20:43 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-19 12:20:43 +0100 |
commit | 40f3c3f66f532941ca9576852827d636000f2477 (patch) | |
tree | 18eb788aa336d14d6b90b91aae56e62af83069e2 /test | |
parent | cce18a14f18b1aa63949de77f4f370ba82708cf3 (diff) | |
download | raul-40f3c3f66f532941ca9576852827d636000f2477.tar.gz raul-40f3c3f66f532941ca9576852827d636000f2477.tar.bz2 raul-40f3c3f66f532941ca9576852827d636000f2477.zip |
Clean up special member functions
Diffstat (limited to 'test')
-rw-r--r-- | test/.clang-tidy | 1 | ||||
-rw-r--r-- | test/maid_test.cpp | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/test/.clang-tidy b/test/.clang-tidy index eecf9fd..d22cba7 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -2,7 +2,6 @@ Checks: > *, -*-avoid-c-arrays, -*-magic-numbers, - -*-special-member-functions, -*-uppercase-literal-suffix, -*-vararg, -abseil-string-find-str-contains, 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; } |