Quellcode durchsuchen

registry: drop redundant traits usage

Michele Caini vor 3 Jahren
Ursprung
Commit
36c21cf7fa
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/entt/entity/registry.hpp

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

@@ -256,7 +256,7 @@ class basic_registry {
         auto &cpool = pools[id];
         auto &cpool = pools[id];
 
 
         if(!cpool) {
         if(!cpool) {
-            using storage_type = storage_for_type<std::remove_const_t<Type>>;
+            using storage_type = storage_for_type<Type>;
             using alloc_type = typename storage_type::allocator_type;
             using alloc_type = typename storage_type::allocator_type;
 
 
             if constexpr(std::is_same_v<Type, void> && !std::is_constructible_v<alloc_type, allocator_type>) {
             if constexpr(std::is_same_v<Type, void> && !std::is_constructible_v<alloc_type, allocator_type>) {