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