From 9c06d6ba0f7f7c4357ff0ccf2f8dab5fe3dbdfc1 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 24 Jan 2023 16:54:32 +0100 Subject: [PATCH] registry: use type member names --- src/entt/entity/registry.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index ae450bcf1..65f555fb5 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -238,9 +238,12 @@ private: */ template class basic_registry { + using basic_common_type = basic_sparse_set; + using alloc_traits = std::allocator_traits; static_assert(std::is_same_v, "Invalid value type"); - using basic_common_type = basic_sparse_set; + // std::shared_ptr because of its type erased allocator which is useful here + using container_type = dense_map, identity, std::equal_to, typename alloc_traits::template rebind_alloc>>>; template using storage_for_type = typename storage_for>>::type; @@ -1565,8 +1568,7 @@ private: context vars; entity_type free_list; std::vector epool; - // std::shared_ptr because of its type erased allocator which is useful here - dense_map, identity, std::equal_to, typename alloc_traits::template rebind_alloc>>> pools; + container_type pools; std::vector> groups; };