From 3e385fb884bda277aa9b21b9af97a89e6f39723b Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 15 Oct 2020 16:41:06 +0200 Subject: [PATCH] view/group: minor changes --- src/entt/entity/group.hpp | 4 ++-- src/entt/entity/view.hpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/entt/entity/group.hpp b/src/entt/entity/group.hpp index a66195b3f..cbc810778 100644 --- a/src/entt/entity/group.hpp +++ b/src/entt/entity/group.hpp @@ -469,7 +469,7 @@ public: * * @return An iterable object to use to _visit_ the group. */ - [[nodiscard]] auto each() const ENTT_NOEXCEPT { + [[nodiscard]] iterable_group each() const ENTT_NOEXCEPT { return iterable_group{*handler, pools}; } @@ -1039,7 +1039,7 @@ public: * * @return An iterable object to use to _visit_ the group. */ - [[nodiscard]] auto each() const ENTT_NOEXCEPT { + [[nodiscard]] iterable_group each() const ENTT_NOEXCEPT { return iterable_group{pools, *length}; } diff --git a/src/entt/entity/view.hpp b/src/entt/entity/view.hpp index 35f7e314f..47ec203d6 100644 --- a/src/entt/entity/view.hpp +++ b/src/entt/entity/view.hpp @@ -545,7 +545,7 @@ public: * * @return An iterable object to use to _visit_ the view. */ - [[nodiscard]] auto each() const ENTT_NOEXCEPT { + [[nodiscard]] iterable_view each() const ENTT_NOEXCEPT { return iterable_view{begin(), end(), pools}; } @@ -564,7 +564,7 @@ public: * @return An iterable object to use to _visit_ the view. */ template - [[nodiscard]] auto each() const ENTT_NOEXCEPT { + [[nodiscard]] iterable_view each() const ENTT_NOEXCEPT { view = std::get *>(pools); return each(); } @@ -991,7 +991,7 @@ public: * * @return An iterable object to use to _visit_ the view. */ - [[nodiscard]] auto each() const ENTT_NOEXCEPT { + [[nodiscard]] iterable_view each() const ENTT_NOEXCEPT { return iterable_view{*pool}; }