diff --git a/develop/untests/meta_utilities/value_tests.cpp b/develop/untests/meta_utilities/value_tests.cpp index 7debd65..50ce7bc 100644 --- a/develop/untests/meta_utilities/value_tests.cpp +++ b/develop/untests/meta_utilities/value_tests.cpp @@ -376,13 +376,13 @@ TEST_CASE("meta/meta_utilities/value") { CHECK(ivec2::move_constructor_counter == 1); CHECK(ivec2::copy_constructor_counter == 0); - val1.swap(val2); + val2.swap(val1); CHECK(val1.as() == ivec2{1,2}); CHECK(val2.as() == "world"s); CHECK(ivec2::move_constructor_counter == 2); CHECK(ivec2::copy_constructor_counter == 0); - swap(val1, val2); + swap(val2, val1); CHECK(val1.as() == "world"s); CHECK(val2.as() == ivec2{1,2}); } diff --git a/headers/meta.hpp/meta_uvalue.hpp b/headers/meta.hpp/meta_uvalue.hpp index e1e7eff..4f2a396 100644 --- a/headers/meta.hpp/meta_uvalue.hpp +++ b/headers/meta.hpp/meta_uvalue.hpp @@ -119,7 +119,7 @@ namespace meta_hpp struct alignas(std::max_align_t) internal_storage_t final { // NOLINTNEXTLINE(*-avoid-c-arrays) - std::byte data[sizeof(void*) * 2]; + std::byte data[sizeof(void*) * 3]; }; struct external_storage_t final {