From a4f2ba1ab8748253d8b335ee93a3cb1ebc78b684 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 6 Nov 2023 08:52:21 +0100 Subject: [PATCH] test: use shared empty type --- test/entt/entity/component.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/entt/entity/component.cpp b/test/entt/entity/component.cpp index d1b23d0e1..aa7cab5f2 100644 --- a/test/entt/entity/component.cpp +++ b/test/entt/entity/component.cpp @@ -2,10 +2,9 @@ #include #include #include "../common/boxed_int.h" +#include "../common/empty.h" #include "../common/non_movable.h" -struct empty {}; - struct self_contained { static constexpr auto in_place_delete = true; static constexpr auto page_size = 4u; @@ -28,7 +27,7 @@ TEST(Component, VoidType) { } TEST(Component, Empty) { - using traits_type = entt::component_traits; + using traits_type = entt::component_traits; ASSERT_FALSE(traits_type::in_place_delete); ASSERT_EQ(traits_type::page_size, 0u);