Browse Source

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

skypjack 2 days ago
parent
commit
f23f923608
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/entt/entity/fwd.hpp
  2. 1 1
      test/common/mixin.hpp

+ 2 - 2
src/entt/entity/fwd.hpp

@@ -241,7 +241,7 @@ struct type_list_transform<owned_t<Type...>, Op> {
  * @tparam Entity A valid entity type.
  * @tparam Allocator Type of allocator used to manage memory and elements.
  */
-template<typename Type, entity_like Entity = entity, typename Allocator = std::allocator<Type>>
+template<typename Type, typename Entity = entity, typename Allocator = std::allocator<Type>>
 struct storage_type {
     /*! @brief Type-to-storage conversion result. */
     using type = ENTT_STORAGE(sigh_mixin, basic_storage<Type, Entity, Allocator>);
@@ -255,7 +255,7 @@ struct reactive final {};
  * @tparam Entity A valid entity type.
  * @tparam Allocator Type of allocator used to manage memory and elements.
  */
-template<entity_like Entity, typename Allocator>
+template<typename Entity, typename Allocator>
 struct storage_type<reactive, Entity, Allocator> {
     /*! @brief Type-to-storage conversion result. */
     using type = ENTT_STORAGE(reactive_mixin, basic_storage<reactive, Entity, Allocator>);

+ 1 - 1
test/common/mixin.hpp

@@ -28,7 +28,7 @@ public:
 
 } // namespace test
 
-template<entt::entity_like Entity>
+template<typename Entity>
 struct entt::storage_type<test::assure_loop, Entity> {
     using type = test::assure_loop_mixin<entt::basic_storage<test::assure_loop, Entity>>;
 };