Просмотр исходного кода

registry: added missing template keyword (thanks msvc for accepting it anyway)

Michele Caini 5 лет назад
Родитель
Сommit
fee0b29a0b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/entt/entity/registry.hpp

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

@@ -113,7 +113,7 @@ class basic_registry {
 
         if(auto &&pdata = pools[index]; !pdata.pool) {
             pdata.pool.reset(new storage_type<Component>());
-            pdata.poly.emplace<storage_type<Component> &>(*static_cast<storage_type<Component> *>(pdata.pool.get()));
+            pdata.poly.template emplace<storage_type<Component> &>(*static_cast<storage_type<Component> *>(pdata.pool.get()));
         }
 
         return static_cast<storage_type<Component> *>(pools[index].pool.get());