Browse Source

test: use .data() if possible

Michele Caini 1 year ago
parent
commit
f4e4dac376
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/entt/core/iterator.cpp

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

@@ -46,7 +46,7 @@ TEST(IterableAdaptor, Functionalities) {
     ASSERT_EQ(*++iterable.cbegin(), 2);
     ASSERT_EQ(*++iterable.cbegin(), 2);
     ASSERT_EQ(++iterable.cbegin(), --iterable.end());
     ASSERT_EQ(++iterable.cbegin(), --iterable.end());
 
 
-    for(auto value: entt::iterable_adaptor<const int *, const void *>{&vec[0u], &vec[1u]}) {
+    for(auto value: entt::iterable_adaptor<const int *, const void *>{vec.data(), &vec[1u]}) {
         ASSERT_EQ(value, 1);
         ASSERT_EQ(value, 1);
     }
     }
 }
 }