From 1357186fe19d0e0ac22f2b1e72b59469af6f41bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 25 Aug 2016 00:09:08 +0200 Subject: [PATCH] Math: MSVC 2015 is picky about constexpr again. No clue. --- src/Magnum/Math/Test/BezierTest.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Math/Test/BezierTest.cpp b/src/Magnum/Math/Test/BezierTest.cpp index 1d4bfbf7e..86354a47c 100644 --- a/src/Magnum/Math/Test/BezierTest.cpp +++ b/src/Magnum/Math/Test/BezierTest.cpp @@ -144,7 +144,10 @@ void BezierTest::data() { CORRADE_COMPARE(a, (QuadraticBezier2D{Vector2{0.0f, 0.0f}, Vector2{1.1f, 0.3f}, Vector2{0.7f, 20.3f}})); constexpr QuadraticBezier2D b{Vector2{3.5f, 0.1f}, Vector2{1.3f, 10.3f}, Vector2{0.0f, -1.2f}}; - constexpr Vector2 c = b[2]; + #ifndef CORRADE_MSVC2015_COMPATIBILITY /* Why? */ + constexpr + #endif + Vector2 c = b[2]; CORRADE_COMPARE(c, (Vector2{0.0f, -1.2f})); }