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

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

@@ -704,7 +704,7 @@ public:
     template<typename... Component>
     template<typename... Component>
     std::enable_if_t<(sizeof...(Component) > 1), std::tuple<const Component &...>>
     std::enable_if_t<(sizeof...(Component) > 1), std::tuple<const Component &...>>
     get(entity_type entity) const ENTT_NOEXCEPT {
     get(entity_type entity) const ENTT_NOEXCEPT {
-        return { get<Component>(entity)... };
+        return std::tuple<const Component &...>{get<Component>(entity)...};
     }
     }
 
 
     /**
     /**
@@ -724,7 +724,7 @@ public:
     template<typename... Component>
     template<typename... Component>
     std::enable_if_t<(sizeof...(Component) > 1), std::tuple<Component &...>>
     std::enable_if_t<(sizeof...(Component) > 1), std::tuple<Component &...>>
     get(entity_type entity) ENTT_NOEXCEPT {
     get(entity_type entity) ENTT_NOEXCEPT {
-        return { get<Component>(entity)... };
+        return std::tuple<Component &...>{get<Component>(entity)...};
     }
     }
 
 
     /**
     /**