소스 검색

sigh_builder: add all missing .template that msvc kindly accepted anyway

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

+ 3 - 3
src/entt/entity/helper.hpp

@@ -199,7 +199,7 @@ struct sigh_helper<Registry, Type> final: sigh_helper<Registry> {
      */
     template<auto Candidate, typename... Args>
     auto on_construct(Args &&...args) {
-        this->registry().on_construct<Type>().connect<Candidate>(std::forward<Args>(args)...);
+        this->registry().template on_construct<Type>().template connect<Candidate>(std::forward<Args>(args)...);
         return *this;
     }
 
@@ -212,7 +212,7 @@ struct sigh_helper<Registry, Type> final: sigh_helper<Registry> {
      */
     template<auto Candidate, typename... Args>
     auto on_update(Args &&...args) {
-        this->registry().on_update<Type>().connect<Candidate>(std::forward<Args>(args)...);
+        this->registry().template on_update<Type>().template connect<Candidate>(std::forward<Args>(args)...);
         return *this;
     }
 
@@ -225,7 +225,7 @@ struct sigh_helper<Registry, Type> final: sigh_helper<Registry> {
      */
     template<auto Candidate, typename... Args>
     auto on_destroy(Args &&...args) {
-        this->registry().on_destroy<Type>().connect<Candidate>(std::forward<Args>(args)...);
+        this->registry().template on_destroy<Type>().template connect<Candidate>(std::forward<Args>(args)...);
         return *this;
     }
 };