Browse Source

view/group: minor changes

Michele Caini 5 years ago
parent
commit
3e385fb884
2 changed files with 5 additions and 5 deletions
  1. 2 2
      src/entt/entity/group.hpp
  2. 3 3
      src/entt/entity/view.hpp

+ 2 - 2
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};
     }
 

+ 3 - 3
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<typename Comp>
-    [[nodiscard]] auto each() const ENTT_NOEXCEPT {
+    [[nodiscard]] iterable_view each() const ENTT_NOEXCEPT {
         view = std::get<pool_type<Comp> *>(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};
     }