1
0
Эх сурвалжийг харах

view: try to also please gcc

Michele Caini 2 жил өмнө
parent
commit
a678133e47

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

@@ -51,8 +51,8 @@ template<typename Type, typename View, typename Other, std::size_t... VGet, std:
 [[nodiscard]] auto view_pack(const View &view, const Other &other, std::index_sequence<VGet...>, std::index_sequence<VExclude...>, std::index_sequence<OGet...>, std::index_sequence<OExclude...>) {
 [[nodiscard]] auto view_pack(const View &view, const Other &other, std::index_sequence<VGet...>, std::index_sequence<VExclude...>, std::index_sequence<OGet...>, std::index_sequence<OExclude...>) {
     Type elem{};
     Type elem{};
     // friend-initialization, avoid multiple calls to refresh
     // friend-initialization, avoid multiple calls to refresh
-    elem.pools = {view.storage<VGet>()..., other.storage<OGet>()...};
-    elem.filter = {view.storage<sizeof...(VGet) + VExclude>()..., other.storage<sizeof...(OGet) + OExclude>()...};
+    elem.pools = {view.template storage<VGet>()..., other.template storage<OGet>()...};
+    elem.filter = {view.template storage<sizeof...(VGet) + VExclude>()..., other.template storage<sizeof...(OGet) + OExclude>()...};
     elem.refresh();
     elem.refresh();
     return elem;
     return elem;
 }
 }