From 9204156485f200b4d78e6b71800c949106f54859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 20 Feb 2017 00:07:50 +0100 Subject: [PATCH] Math: constexpr issues with MSVC 2015. --- src/Magnum/Math/Test/ColorTest.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Math/Test/ColorTest.cpp b/src/Magnum/Math/Test/ColorTest.cpp index fa085cefd..0268e2dd0 100644 --- a/src/Magnum/Math/Test/ColorTest.cpp +++ b/src/Magnum/Math/Test/ColorTest.cpp @@ -343,8 +343,14 @@ void ColorTest::data() { Color3 c3a = c.rgb(); Color3 c3b = c.xyz(); - constexpr Color3 cc3a{cc.rgb()}; - constexpr Color3 cc3b{cc.xyz()}; + #ifndef CORRADE_MSVC2015_COMPATIBILITY + constexpr /* No idea what's wrong. For Vector4 it "just works" */ + #endif + Color3 cc3a{cc.rgb()}; + #ifndef CORRADE_MSVC2015_COMPATIBILITY + constexpr /* No idea what's wrong. For Vector4 it "just works" */ + #endif + Color3 cc3b{cc.xyz()}; CORRADE_COMPARE(c3a, (Color3{1.0f, 2.0f, 3.0f})); CORRADE_COMPARE(c3b, (Color3{1.0f, 2.0f, 3.0f})); CORRADE_COMPARE(cc3a, (Color3{1.0f, 2.0f, 3.0f}));