From fca08a516273d947bb4140fca1d0b59a2b23fa48 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 5 Oct 2020 16:12:27 +0200 Subject: [PATCH] view/group: minor changes --- src/entt/entity/group.hpp | 12 ++++++------ src/entt/entity/view.hpp | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/entt/entity/group.hpp b/src/entt/entity/group.hpp index 8241c025d..48169a432 100644 --- a/src/entt/entity/group.hpp +++ b/src/entt/entity/group.hpp @@ -134,7 +134,7 @@ class basic_group, get_t> { [[nodiscard]] iterator begin() const ENTT_NOEXCEPT { return proxy_iterator{handler->begin(), std::tuple_cat([](auto *cpool) { - if constexpr(is_eto_eligible_v::object_type>) { + if constexpr(is_eto_eligible_v::object_type>) { return std::make_tuple(); } else { return std::make_tuple(cpool); @@ -144,7 +144,7 @@ class basic_group, get_t> { [[nodiscard]] iterator end() const ENTT_NOEXCEPT { return proxy_iterator{handler->end(), std::tuple_cat([](auto *cpool) { - if constexpr(is_eto_eligible_v::object_type>) { + if constexpr(is_eto_eligible_v::object_type>) { return std::make_tuple(); } else { return std::make_tuple(cpool); @@ -684,14 +684,14 @@ class basic_group, get_t, Owned...> { return proxy_iterator{ std::get<0>(pools)->sparse_set::end() - *length, std::tuple_cat([length = *length](auto *cpool) { - if constexpr(is_eto_eligible_v::object_type>) { + if constexpr(is_eto_eligible_v::object_type>) { return std::make_tuple(); } else { return std::make_tuple(cpool->end() - length); } }(std::get *>(pools))...), std::tuple_cat([](auto *cpool) { - if constexpr(is_eto_eligible_v::object_type>) { + if constexpr(is_eto_eligible_v::object_type>) { return std::make_tuple(); } else { return std::make_tuple(cpool); @@ -704,14 +704,14 @@ class basic_group, get_t, Owned...> { return proxy_iterator{ std::get<0>(pools)->sparse_set::end(), std::tuple_cat([](auto *cpool) { - if constexpr(is_eto_eligible_v::object_type>) { + if constexpr(is_eto_eligible_v::object_type>) { return std::make_tuple(); } else { return std::make_tuple(cpool->end()); } }(std::get *>(pools))...), std::tuple_cat([](auto *cpool) { - if constexpr(is_eto_eligible_v::object_type>) { + if constexpr(is_eto_eligible_v::object_type>) { return std::make_tuple(); } else { return std::make_tuple(cpool); diff --git a/src/entt/entity/view.hpp b/src/entt/entity/view.hpp index adfc343e0..127e10f58 100644 --- a/src/entt/entity/view.hpp +++ b/src/entt/entity/view.hpp @@ -213,7 +213,7 @@ class basic_view, Component...> { [[nodiscard]] iterator begin() const ENTT_NOEXCEPT { return proxy_iterator{first, std::tuple_cat([](auto *cpool) { - if constexpr(is_eto_eligible_v::object_type>) { + if constexpr(is_eto_eligible_v::object_type>) { return std::make_tuple(); } else { return std::make_tuple(cpool); @@ -223,7 +223,7 @@ class basic_view, Component...> { [[nodiscard]] iterator end() const ENTT_NOEXCEPT { return proxy_iterator{last, std::tuple_cat([](auto *cpool) { - if constexpr(is_eto_eligible_v::object_type>) { + if constexpr(is_eto_eligible_v::object_type>) { return std::make_tuple(); } else { return std::make_tuple(cpool);