From 221f4da6d1b7f742afa136cf929ba388e11bc5a3 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 18 Aug 2016 18:34:51 +0100 Subject: [PATCH] Try to fix constexpr test case for both C++11 and C++14 variations. --- test/boost_no_constexpr.ipp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/boost_no_constexpr.ipp b/test/boost_no_constexpr.ipp index 7b601379..35ac4891 100644 --- a/test/boost_no_constexpr.ipp +++ b/test/boost_no_constexpr.ipp @@ -32,7 +32,13 @@ private: template struct X { }; + +#if __cplusplus < 201400L +// Some C++14 compilers reject this (clang), some C++11 compilers reject "constexpr const" (GCC-4.6) +constexpr A a = 42; +#else constexpr const A a = 42; +#endif X xx; // OK: unique conversion to int