diff --git a/tests/test_class_sh_shared_ptr_copy_move.cpp b/tests/test_class_sh_shared_ptr_copy_move.cpp index 7e1239651..69172efbf 100644 --- a/tests/test_class_sh_shared_ptr_copy_move.cpp +++ b/tests/test_class_sh_shared_ptr_copy_move.cpp @@ -15,8 +15,16 @@ template struct Foo { std::string history; Foo(const std::string &history_) : history(history_) {} - Foo(const Foo &other) = delete; - Foo(Foo &&other) = delete; + Foo(const Foo &other) : history(other.history + "_CpCtor") {} + Foo(Foo &&other) : history(other.history + "_MvCtor") {} + Foo &operator=(const Foo &other) { + history = other.history + "_OpEqLv"; + return *this; + } + Foo &operator=(Foo &&other) { + history = other.history + "_OpEqRv"; + return *this; + } std::string get_history() const { return "Foo" + fooNames[SerNo] + history; } };