From e75bef1d532fd96240dac8eabb2a252c1d27f019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 12 Dec 2016 21:43:41 +0100 Subject: [PATCH] Math: MSVC 2015 workarounds for constexpr in Frustum tests. --- src/Magnum/Math/Test/FrustumTest.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Math/Test/FrustumTest.cpp b/src/Magnum/Math/Test/FrustumTest.cpp index 4c4dc6564..5237acff0 100644 --- a/src/Magnum/Math/Test/FrustumTest.cpp +++ b/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); }