From ba7428f3d63c1130e1dfc2eb934182adae6159ce Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 10 Jul 2020 16:59:44 +0200 Subject: [PATCH] group: small changes to get around an issue of g++ v7.5 --- src/entt/entity/group.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entt/entity/group.hpp b/src/entt/entity/group.hpp index 3e531c91a..72f52bf36 100644 --- a/src/entt/entity/group.hpp +++ b/src/entt/entity/group.hpp @@ -667,11 +667,11 @@ class basic_group, get_t, Owned...> { [[nodiscard]] auto begin() const ENTT_NOEXCEPT { return range_iterator{ std::get<0>(pools)->sparse_set::end() - *length, - std::tuple_cat([this](auto *cpool) { + std::tuple_cat([length = *length](auto *cpool) { if constexpr(ENTT_IS_EMPTY(typename std::decay_t::object_type)) { return std::make_tuple(); } else { - return std::make_tuple(cpool->end() - *length); + return std::make_tuple(cpool->end() - length); } }(std::get *>(pools))...), std::tuple_cat([](auto *cpool) {