diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index adb3a0a55..a443b2545 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -790,15 +790,15 @@ public: */ template [[nodiscard]] decltype(auto) get([[maybe_unused]] const entity_type entity) const { - ENTT_ASSERT(valid(entity) && ... && pool_if_exists()); - return view...>().get...>(entity); + ENTT_ASSERT((valid(entity) && ... && pool_if_exists())); + return view...>().template get...>(entity); } /*! @copydoc get */ template [[nodiscard]] decltype(auto) get([[maybe_unused]] const entity_type entity) { ENTT_ASSERT(valid(entity)); - return view().get(entity); + return view().template get(entity); } /**