Parcourir la source

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

Michele Caini il y a 3 ans
Parent
commit
f4e2a8c76c
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  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;
     }
 };