From 0e813c330729099d34c963f1e9f655e00b9a01ee Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sun, 25 Jan 2026 14:20:36 +0300 Subject: [PATCH] Fix compilation on gcc-15: int template arguments can't be implicitly casted to size_t --- libs/math/include/psemek/math/swizzle.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/math/include/psemek/math/swizzle.hpp b/libs/math/include/psemek/math/swizzle.hpp index a60e5f0e..d2232c9f 100644 --- a/libs/math/include/psemek/math/swizzle.hpp +++ b/libs/math/include/psemek/math/swizzle.hpp @@ -24,7 +24,7 @@ namespace psemek::math #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Warray-bounds" - template + template constexpr auto swizzle = [](auto const & x){ static_assert(((I == -1 || I < std::decay_t::static_dimension) && ...)); using result = typename detail::swizzle_rebind>::template type;