From 9fafb83a41e56be790f7bdfa42271773f25eb31e Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 20 Sep 2024 09:24:01 +0200 Subject: [PATCH] reactive mixin: try to make all compilers happy --- src/entt/entity/mixin.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/entt/entity/mixin.hpp b/src/entt/entity/mixin.hpp index 936ee6505..7b1fc5b75 100644 --- a/src/entt/entity/mixin.hpp +++ b/src/entt/entity/mixin.hpp @@ -455,7 +455,7 @@ public: */ template void on_construct(const id_type id = type_hash::value()) { - owner_or_assert().storage(id).on_construct().connect(*this); + owner_or_assert().storage(id).on_construct().template connect(*this); } /** @@ -466,7 +466,7 @@ public: */ template void on_update(const id_type id = type_hash::value()) { - owner_or_assert().storage(id).on_update().connect(*this); + owner_or_assert().storage(id).on_update().template connect(*this); } /** @@ -477,7 +477,7 @@ public: */ template void on_destroy(const id_type id = type_hash::value()) { - owner_or_assert().storage(id).on_destroy().connect(*this); + owner_or_assert().storage(id).on_destroy().template connect(*this); } /** @@ -512,7 +512,7 @@ public: view(exclude_t = exclude_t{}) const { const basic_registry_type &parent = owner_or_assert(); basic_view...>, exclude_t...>> elem{}; - [&elem](const auto *...curr) { ((curr ? elem.storage(*curr) : void()), ...); }(parent.storage>()..., parent.storage>()..., this); + [&elem](const auto *...curr) { ((curr ? elem.storage(*curr) : void()), ...); }(parent.template storage>()..., parent.template storage>()..., this); return elem; } @@ -521,7 +521,7 @@ public: [[nodiscard]] basic_view...>, exclude_t...>> view(exclude_t = exclude_t{}) { basic_registry_type &parent = owner_or_assert(); - return {*this, parent.storage>()..., parent.storage>()...}; + return {*this, parent.template storage>()..., parent.template storage>()...}; } private: