Browse Source

test: avoid C-like arrays

Michele Caini 1 year ago
parent
commit
ede1dba441
1 changed files with 2 additions and 1 deletions
  1. 2 1
      test/entt/meta/meta_factory.cpp

+ 2 - 1
test/entt/meta/meta_factory.cpp

@@ -1,3 +1,4 @@
+#include <array>
 #include <iterator>
 #include <iterator>
 #include <string>
 #include <string>
 #include <utility>
 #include <utility>
@@ -159,7 +160,7 @@ TEST_F(MetaFactory, Conv) {
 }
 }
 
 
 TEST_F(MetaFactory, Ctor) {
 TEST_F(MetaFactory, Ctor) {
-    const int values[]{1, 3};
+    const std::array values{1, 3};
     auto factory = entt::meta<clazz>();
     auto factory = entt::meta<clazz>();
 
 
     ASSERT_FALSE(entt::resolve<clazz>().construct(values[0u]));
     ASSERT_FALSE(entt::resolve<clazz>().construct(values[0u]));