소스 검색

view: try to also please gcc

Michele Caini 2 년 전
부모
커밋
a678133e47
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/entt/entity/view.hpp

+ 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...>) {
     Type elem{};
     // 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();
     return elem;
 }