Преглед изворни кода

test: avoid using registry traits_type

Michele Caini пре 2 година
родитељ
комит
69d15470b4
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      test/example/reserved_bits.cpp

+ 2 - 2
test/example/reserved_bits.cpp

@@ -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);