Browse Source

Math: MSVC 2015 workarounds for constexpr in Frustum tests.

pull/190/head
Vladimír Vondruš 10 years ago
parent
commit
e75bef1d53
  1. 5
      src/Magnum/Math/Test/FrustumTest.cpp

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

@ -270,7 +270,10 @@ void FrustumTest::data() {
constexpr Vector4 near = a.near();
CORRADE_COMPARE(near, (Vector4{0.0f, 0.0f, 1.0f, 1.0f}));
constexpr Float b = *a.data();
#ifndef CORRADE_MSVC2015_COMPATIBILITY /* Apparently dereferencing pointer is verboten */
constexpr
#endif
Float b = *a.data();
CORRADE_COMPARE(b, 1.0f);
}

Loading…
Cancel
Save