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

This commit is contained in:
skypjack
2026-03-24 15:50:47 +01:00
parent ca32a3668a
commit 9b94f09999
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ struct page_size<Type>: std::integral_constant<std::size_t, Type::page_size> {};
* @tparam Type Element type.
* @tparam Entity A valid entity type.
*/
template<cvref_unqualified Type, entity_like Entity>
template<cvref_unqualified Type, typename Entity>
struct component_traits {
/*! @brief Element type. */
using element_type = Type;

View File

@@ -44,7 +44,7 @@ enum class deletion_policy : std::uint8_t {
unspecified = swap_and_pop
};
template<cvref_unqualified Type, entity_like Entity = entity>
template<cvref_unqualified Type, typename Entity = entity>
struct component_traits;
template<entity_like Entity = entity, typename = std::allocator<Entity>>