Просмотр исходного кода

test: reduce impact of entity_like, and prepare to fix it

skypjack 2 дней назад
Родитель
Сommit
ca32a3668a
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      test/common/registry.h
  2. 1 1
      test/entt/entity/component.cpp

+ 1 - 1
test/common/registry.h

@@ -5,7 +5,7 @@
 
 
 namespace test {
 namespace test {
 
 
-template<entt::entity_like Entity>
+template<typename Entity>
 struct custom_registry: private entt::basic_registry<Entity> {
 struct custom_registry: private entt::basic_registry<Entity> {
     using base_type = entt::basic_registry<Entity>;
     using base_type = entt::basic_registry<Entity>;
 
 

+ 1 - 1
test/entt/entity/component.cpp

@@ -34,7 +34,7 @@ struct entt::component_traits<ComponentBase::traits_based, ComponentBase::other_
     static constexpr auto page_size = 16u;
     static constexpr auto page_size = 16u;
 };
 };
 
 
-template<entt::entity_like Entity>
+template<typename Entity>
 struct entt::component_traits<ComponentBase::traits_based, Entity> {
 struct entt::component_traits<ComponentBase::traits_based, Entity> {
     using entity_type = Entity;
     using entity_type = Entity;
     using element_type = ComponentBase::traits_based;
     using element_type = ComponentBase::traits_based;