From 2fc05e5b907e24fd642d2c2d737f9753469eacb2 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 29 Sep 2021 11:01:55 +0200 Subject: [PATCH] meta: add missing template keywords (thanks MSVC for accepting invalid code) --- src/entt/meta/meta.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index 3a7787f83..5f573c519 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -354,7 +354,7 @@ public: for(auto *it = node->base; it; it = it->next) { const auto as_const = it->cast(as_ref()); - if(const Type *base = as_const.try_cast(); base) { + if(const Type *base = as_const.template try_cast(); base) { return base; } } @@ -370,7 +370,7 @@ public: return any_cast(&storage); } else if(node) { for(auto *it = node->base; it; it = it->next) { - if(Type *base = it->cast(as_ref()).try_cast(); base) { + if(Type *base = it->cast(as_ref()).template try_cast(); base) { return base; } }