1
0
Эх сурвалжийг харах

test: try to make all compilers happy again

Michele Caini 2 жил өмнө
parent
commit
bd06d384e0

+ 1 - 1
test/entt/core/any.cpp

@@ -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);

+ 1 - 1
test/entt/meta/meta_any.cpp

@@ -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);