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

This commit is contained in:
skypjack
2026-03-24 14:15:12 +01:00
parent 8cc2eb43b3
commit f23f923608
2 changed files with 3 additions and 3 deletions

View File

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

View File

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