From 71ed990b9bbc3b8252367c9dd583b1f885f66dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 9 Aug 2012 01:27:42 +0200 Subject: [PATCH] New version of swizzle isn't constexpr with old GCC 4.5. --- src/Math/Test/SwizzleTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Math/Test/SwizzleTest.cpp b/src/Math/Test/SwizzleTest.cpp index 298b7dba6..d7ad910c0 100644 --- a/src/Math/Test/SwizzleTest.cpp +++ b/src/Math/Test/SwizzleTest.cpp @@ -52,7 +52,9 @@ void SwizzleTest::rgba() { void SwizzleTest::fromSmall() { /* Force compile-time evaluation for both */ constexpr Vector2 orig(1, 2); + #ifndef MAGNUM_GCC45_COMPATIBILITY CORRADE_VERIFY((integral_constant::value)); + #endif CORRADE_COMPARE((swizzle<'g', 'x', 'r'>(orig)), Vector3(2, 1, 1)); }