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

This commit is contained in:
skypjack
2026-03-25 00:03:59 +01:00
parent 9b94f09999
commit 05d11b7fa0
2 changed files with 2 additions and 2 deletions

View File

@@ -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>>

View File

@@ -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");