From b147a0daa1be2c5e7faea33f500e7f22541c12a0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 25 Aug 2023 19:28:32 +0200 Subject: entities: add intents for metadata It's going to be used for serialization which has different fields. --- test/entity.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/entity.cpp b/test/entity.cpp index 1ae77129..3c099a37 100644 --- a/test/entity.cpp +++ b/test/entity.cpp @@ -20,7 +20,7 @@ struct TestAccessors { namespace floormat::entities { -template<> struct entity_accessors { +template<> struct entity_accessors { static constexpr auto accessors() { using entity = Entity; @@ -126,7 +126,7 @@ void test_erasure() { void test_metadata() { - constexpr auto m = entity_metadata(); + constexpr auto m = entity_metadata(); static_assert(sizeof m == 1); fm_assert(m.class_name == name_of); fm_assert(m.class_name.contains("TestAccessors"_s)); @@ -160,7 +160,7 @@ void test_type_name() constexpr auto foo = entity::type::field{"foo"_s, &TestAccessors::foo, nullptr}; static_assert(foo.writer == nullptr); static_assert(!foo.can_write); - static_assert(std::get<0>(entity_accessors::accessors()).can_write); + static_assert(std::get<0>(entity_accessors::accessors()).can_write); } void test_predicate() @@ -185,7 +185,7 @@ void test_predicate() constexpr bool test_names() { - constexpr auto m = entity_metadata(); + constexpr auto m = entity_metadata(); auto [foo1, bar1, baz1] = m.accessors; auto [foo2, bar2, baz2] = m.erased_accessors; -- cgit v1.2.3