From b0419034666ff894c3f68e3988cf127b02e70cc5 Mon Sep 17 00:00:00 2001 From: Kelbon Nik Date: Fri, 16 Feb 2024 22:55:15 +0400 Subject: [PATCH] return in untested fn --- include/anyany/anyany.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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