From 88db623dc172bec8f8b03d3372417641f1abbfd8 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 4 Apr 2022 12:27:28 +0200 Subject: [PATCH] view: avoid unnecessary parameter pack --- src/entt/entity/view.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entt/entity/view.hpp b/src/entt/entity/view.hpp index 25424791b..230a3b127 100644 --- a/src/entt/entity/view.hpp +++ b/src/entt/entity/view.hpp @@ -577,9 +577,9 @@ public: * @tparam Comp Type of component of which to return the storage. * @return The storage for the given component type. */ - template + template [[nodiscard]] decltype(auto) storage() const ENTT_NOEXCEPT { - static_assert((std::is_same_v && ...), "Invalid component type"); + static_assert(std::is_same_v, "Invalid component type"); return *std::get<0>(pools); }