sparse_set: reduce impact of entity_like, and prepare to fix it
This commit is contained in:
@@ -47,7 +47,7 @@ enum class deletion_policy : std::uint8_t {
|
||||
template<cvref_unqualified Type, typename Entity = entity>
|
||||
struct component_traits;
|
||||
|
||||
template<entity_like Entity = entity, typename = std::allocator<Entity>>
|
||||
template<typename Entity = entity, typename = std::allocator<Entity>>
|
||||
class basic_sparse_set;
|
||||
|
||||
template<typename Type, typename = entity, typename = std::allocator<Type>>
|
||||
|
||||
@@ -136,7 +136,7 @@ private:
|
||||
* @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>
|
||||
class basic_sparse_set {
|
||||
using alloc_traits = std::allocator_traits<Allocator>;
|
||||
static_assert(std::is_same_v<typename alloc_traits::value_type, Entity>, "Invalid value type");
|
||||
|
||||
Reference in New Issue
Block a user