Browse Source

registry: start to introduce the allocator (work in progress)

Michele Caini 3 years ago
parent
commit
67271e4672
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/entt/entity/registry.hpp

+ 2 - 1
src/entt/entity/registry.hpp

@@ -250,7 +250,8 @@ private:
 template<typename Entity, typename Allocator>
 template<typename Entity, typename Allocator>
 class basic_registry {
 class basic_registry {
     using entity_traits = entt_traits<Entity>;
     using entity_traits = entt_traits<Entity>;
-    using basic_common_type = basic_sparse_set<Entity>;
+    using basic_common_type = basic_sparse_set<Entity, Allocator>;
+    using alloc_traits = typename std::allocator_traits<Allocator>;
 
 
     template<typename Type>
     template<typename Type>
     using storage_for_type = typename storage_for<Type, Entity>::type;
     using storage_for_type = typename storage_for<Type, Entity>::type;