test: try to make all compilers happy again

This commit is contained in:
Michele Caini
2023-12-21 08:22:01 +01:00
parent 17913a7a14
commit bd06d384e0
2 changed files with 2 additions and 2 deletions

View File

@@ -1298,7 +1298,7 @@ TEST_F(Any, ForwardAsAny) {
int value = 42;
auto ref = entt::forward_as_any(value);
auto cref = entt::forward_as_any(std::as_const(value));
auto any = entt::forward_as_any(int{value});
auto any = entt::forward_as_any(static_cast<int &&>(value));
ASSERT_TRUE(any);
ASSERT_TRUE(ref);

View File

@@ -1357,7 +1357,7 @@ TEST_F(MetaAny, ForwardAsMeta) {
int value = 42;
auto ref = entt::forward_as_meta(value);
auto cref = entt::forward_as_meta(std::as_const(value));
auto any = entt::forward_as_meta(int{value});
auto any = entt::forward_as_meta(static_cast<int &&>(value));
ASSERT_TRUE(any);
ASSERT_TRUE(ref);