component_traits: refine definition
This commit is contained in:
@@ -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, typename>
|
||||
template<cvref_unqualified Type, entity_like Entity>
|
||||
struct component_traits {
|
||||
/*! @brief Element type. */
|
||||
using element_type = Type;
|
||||
|
||||
@@ -44,7 +44,7 @@ enum class deletion_policy : std::uint8_t {
|
||||
unspecified = swap_and_pop
|
||||
};
|
||||
|
||||
template<cvref_unqualified Type, entity_like Entity = entity, typename = void>
|
||||
template<cvref_unqualified Type, entity_like Entity = entity>
|
||||
struct component_traits;
|
||||
|
||||
template<entity_like Entity = entity, typename = std::allocator<Entity>>
|
||||
|
||||
Reference in New Issue
Block a user