test: avoid using registry traits_type

This commit is contained in:
Michele Caini
2024-03-11 11:13:30 +01:00
parent fefcbb214a
commit 69d15470b4

View File

@@ -38,8 +38,8 @@ TEST(Example, DisabledEntity) {
entt::basic_registry<my_entity> registry{};
auto view = registry.view<my_entity, int>();
const my_entity entity = registry.create(entt::basic_registry<my_entity>::traits_type::construct(4u, 1u));
const my_entity other = registry.create(entt::basic_registry<my_entity>::traits_type::construct(3u, 0u));
const my_entity entity = registry.create(entt::entt_traits<my_entity>::construct(4u, 1u));
const my_entity other = registry.create(entt::entt_traits<my_entity>::construct(3u, 0u));
registry.emplace<int>(entity);
registry.emplace<int>(other);