diff --git a/TODO b/TODO index 5563a38ff..db4c12e1f 100644 --- a/TODO +++ b/TODO @@ -28,8 +28,6 @@ TODO: * view: propagate tombostone check request to iterator * table: pop back to support swap and pop, single column access, empty type optimization * checkout tools workflow -* review constrained noexcept-ness (ie sigh) -* registry::view const invokes refresh multiple times implicitly * improve front (no multiple checks) and back (ie no contains) for multi-type view * cleanup common view from tricks to handle single swap-only and in-place, if constexpr branches * entity based component_traits diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index fc4ac217d..d28b4fde7 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -1067,9 +1067,8 @@ public: template [[nodiscard]] basic_view, storage_for_type...>, exclude_t...>> view(exclude_t = exclude_t{}) const { - const auto cpools = std::make_tuple(assure>(), assure>()..., assure>()...); basic_view, storage_for_type...>, exclude_t...>> elem{}; - std::apply([&elem](const auto *...curr) { ((curr ? elem.storage(*curr) : void()), ...); }, cpools); + [&elem](const auto *...curr) { ((curr ? elem.storage(*curr) : void()), ...); }(assure>()..., assure>()..., assure>()); return elem; }