From 80b61be4851910d575547516e6ce75b883aca4a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 24 Nov 2013 17:26:40 +0100 Subject: [PATCH] Fixed constexpr issues in ColorTest under GCC 4.6. --- src/Test/ColorTest.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Test/ColorTest.cpp b/src/Test/ColorTest.cpp index 506115cf4..d7dc1926a 100644 --- a/src/Test/ColorTest.cpp +++ b/src/Test/ColorTest.cpp @@ -117,7 +117,10 @@ void ColorTest::constructDefault() { } void ColorTest::constructOneValue() { - constexpr Color3 a(0.25f); + #ifndef CORRADE_GCC46_COMPATIBILITY + constexpr /* Not constexpr under GCC < 4.7 */ + #endif + Color3 a(0.25f); CORRADE_COMPARE(a, Color3(0.25f, 0.25f, 0.25f)); constexpr Color4 b(0.25f, 0.5f);