Przeglądaj źródła

registry: thanks MSVC for accepting invalid C++ code

Michele Caini 3 lat temu
rodzic
commit
9d38f60207
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/entt/entity/registry.hpp

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

@@ -304,7 +304,7 @@ class basic_registry {
         auto &cpool = pools[id];
         auto &cpool = pools[id];
 
 
         if(!cpool) {
         if(!cpool) {
-            using alloc_type = storage_for_type<std::remove_const_t<Type>>::allocator_type;
+            using alloc_type = typename storage_for_type<std::remove_const_t<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>) {
                 // std::allocator<void> has no cross constructors (waiting for C++20)
                 // std::allocator<void> has no cross constructors (waiting for C++20)