From f4e4dac3764e6fa4d90a17ab42da00b400d063d8 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 7 Oct 2024 12:55:46 +0200 Subject: [PATCH] test: use .data() if possible --- test/entt/core/iterator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/entt/core/iterator.cpp b/test/entt/core/iterator.cpp index 96ea39876..9653a8852 100644 --- a/test/entt/core/iterator.cpp +++ b/test/entt/core/iterator.cpp @@ -46,7 +46,7 @@ TEST(IterableAdaptor, Functionalities) { ASSERT_EQ(*++iterable.cbegin(), 2); ASSERT_EQ(++iterable.cbegin(), --iterable.end()); - for(auto value: entt::iterable_adaptor{&vec[0u], &vec[1u]}) { + for(auto value: entt::iterable_adaptor{vec.data(), &vec[1u]}) { ASSERT_EQ(value, 1); } }