Browse Source

Math: work around constexpr issues on old GCCs in Frustum test.

Travis CI GCC 4.7 and Android NDK GCC 4.9 fail to compile that. GCC 6
works, not sure about GCC 5.
pull/190/head
Vladimír Vondruš 10 years ago
parent
commit
a8d1fc4d84
  1. 5
      src/Magnum/Math/Test/FrustumTest.cpp

5
src/Magnum/Math/Test/FrustumTest.cpp

@ -261,7 +261,10 @@ void FrustumTest::data() {
/* Using default-constructed to verify that the planes are in correct order */
constexpr Frustum a;
constexpr Vector4 right = a.planes()[1];
#if !defined(__GNUC__) || __GNUC__*100 + __GNUC_MINOR__ >= 500
constexpr
#endif
Vector4 right = a.planes()[1];
CORRADE_COMPARE(right, (Vector4{-1.0f, 0.0f, 0.0f, 1.0f}));
constexpr Vector4 bottom = a[2];

Loading…
Cancel
Save