Browse Source

Math: constexpr issues with MSVC 2015.

pull/193/head
Vladimír Vondruš 9 years ago
parent
commit
9204156485
  1. 10
      src/Magnum/Math/Test/ColorTest.cpp

10
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}));

Loading…
Cancel
Save