diff --git a/include/anyany/anyany.hpp b/include/anyany/anyany.hpp index c090aa7..c0a63c1 100644 --- a/include/anyany/anyany.hpp +++ b/include/anyany/anyany.hpp @@ -1231,7 +1231,7 @@ struct basic_any : construct_interface, Me void replace_with(basic_any&& other) noexcept(movable_alloc()) { if (this == std::addressof(other)) - return *this; + return; move_assign(other); } template