Browse Source

New version of swizzle isn't constexpr with old GCC 4.5.

Vladimír Vondruš 14 years ago
parent
commit
71ed990b9b
  1. 2
      src/Math/Test/SwizzleTest.cpp

2
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<bool, swizzle(orig, "gxr").x() == 2>::value));
#endif
CORRADE_COMPARE((swizzle<'g', 'x', 'r'>(orig)), Vector3(2, 1, 1));
}

Loading…
Cancel
Save