From e869cd1aff6e9e80c3fe4c7bf23c64ae76d8509f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 28 Jan 2026 17:19:43 +0100 Subject: [PATCH] Math: adapt to CORRADE_NODISCARD changes. Yeah, this is how it should have been since the beginning. --- src/Magnum/Math/Swizzle.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Math/Swizzle.h b/src/Magnum/Math/Swizzle.h index beacf3ad4..b26a88e1f 100644 --- a/src/Magnum/Math/Swizzle.h +++ b/src/Magnum/Math/Swizzle.h @@ -149,11 +149,11 @@ Use @ref scatterInto() to update the vector in-place. @ref Vector4::rgb(), @ref Vector4::xy(), @ref Vector3::xy() */ #ifdef DOXYGEN_GENERATING_OUTPUT -template CORRADE_NODISCARD constexpr T scatter(const T& vector, const Vector& values) +template CORRADE_NODISCARD("use scatterInto() to scatter in-place") constexpr T scatter(const T& vector, const Vector& values) #else /* Using std::common_type otherwise GCC 4.8 fails to match the arguments in SwizzleTest::scatterOneComponent() */ -template CORRADE_NODISCARD constexpr T scatter(const T& vector, const typename std::common_type>::type& values) +template CORRADE_NODISCARD("use scatterInto() to scatter in-place") constexpr T scatter(const T& vector, const typename std::common_type>::type& values) #endif { return Implementation::scatterRecursive(vector, values, 0);