rewrite value without std::any

This commit is contained in:
BlackMATov
2022-01-26 17:48:00 +07:00
parent 1fd3992d97
commit 8d6a8e7789
5 changed files with 713 additions and 111 deletions

View File

@@ -395,7 +395,7 @@ TEST_CASE("meta/meta_utilities/value") {
val1.swap(val2);
CHECK(val1 == ivec2{1,2});
CHECK(val2 == "world"s);
CHECK(ivec2::move_ctor_counter == 3);
CHECK(ivec2::move_ctor_counter == 2);
CHECK(ivec2::copy_ctor_counter == 0);
swap(val1, val2);