From ed0319cdd87d7a36f5c05ea06f2235efbb828ed4 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 31 Oct 2022 09:52:40 +0100 Subject: [PATCH] view: avoid shadow warnings --- src/entt/entity/view.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entt/entity/view.hpp b/src/entt/entity/view.hpp index 5c732ed7d..2b8629ec4 100644 --- a/src/entt/entity/view.hpp +++ b/src/entt/entity/view.hpp @@ -268,11 +268,11 @@ public: /** * @brief Constructs a multi-type view from a set of storage classes. * @param value The storage for the types to iterate. - * @param exclude The storage for the types used to filter the view. + * @param excl The storage for the types used to filter the view. */ - basic_view(std::tuple value, std::tuple exclude = {}) noexcept + basic_view(std::tuple value, std::tuple excl = {}) noexcept : pools{std::apply([](auto &...curr) { return std::make_tuple(&curr...); }, value)}, - filter{std::apply([](auto &...curr) { return std::make_tuple(&curr...); }, exclude)}, + filter{std::apply([](auto &...curr) { return std::make_tuple(&curr...); }, excl)}, view{std::apply([](const base_type *first, const auto *...other) { ((first = other->size() < first->size() ? other : first), ...); return first; }, pools)} {} /**