Try to fix constexpr test case for both C++11 and C++14 variations.

This commit is contained in:
jzmaddock
2016-08-18 18:34:51 +01:00
parent b24ad05ffe
commit 221f4da6d1

View File

@ -32,7 +32,13 @@ private:
template<int> 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<a> xx; // OK: unique conversion to int