group: small changes to get around an issue of g++ v7.5
This commit is contained in:
@@ -667,11 +667,11 @@ class basic_group<Entity, exclude_t<Exclude...>, get_t<Get...>, Owned...> {
|
||||
[[nodiscard]] auto begin() const ENTT_NOEXCEPT {
|
||||
return range_iterator{
|
||||
std::get<0>(pools)->sparse_set<Entity>::end() - *length,
|
||||
std::tuple_cat([this](auto *cpool) {
|
||||
std::tuple_cat([length = *length](auto *cpool) {
|
||||
if constexpr(ENTT_IS_EMPTY(typename std::decay_t<decltype(*cpool)>::object_type)) {
|
||||
return std::make_tuple();
|
||||
} else {
|
||||
return std::make_tuple(cpool->end() - *length);
|
||||
return std::make_tuple(cpool->end() - length);
|
||||
}
|
||||
}(std::get<pool_type<Owned> *>(pools))...),
|
||||
std::tuple_cat([](auto *cpool) {
|
||||
|
||||
Reference in New Issue
Block a user