diff --git a/tests/bases.cpp b/tests/bases.cpp index d5c60aa..cff7819 100644 --- a/tests/bases.cpp +++ b/tests/bases.cpp @@ -32,8 +32,8 @@ TEST_CASE("Triviality", "[bases.triviality]") { struct T { T(const T&){} T(T&&) {}; - T& operator=(const T&) {} - T& operator=(T&&) {}; + T& operator=(const T&) { return *this; } + T& operator=(T&&) { return *this; }; ~T(){} }; REQUIRE(!std::is_trivially_copy_constructible>::value); diff --git a/tests/noexcept.cpp b/tests/noexcept.cpp index 315c08f..edfa88f 100644 --- a/tests/noexcept.cpp +++ b/tests/noexcept.cpp @@ -80,7 +80,7 @@ TEST_CASE("Noexcept", "[noexcept]") { struct throw_move_assign { throw_move_assign() = default; throw_move_assign(throw_move_assign &&){}; - throw_move_assign &operator=(const throw_move_assign &) {} + throw_move_assign &operator=(const throw_move_assign &) { return *this; } }; using nothrow_opt = tl::optional;