Sfoglia il codice sorgente

test: try to make all compilers happy again

Michele Caini 2 anni fa
parent
commit
bd06d384e0
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      test/entt/core/any.cpp
  2. 1 1
      test/entt/meta/meta_any.cpp

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

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

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

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