forked from boostorg/config
Try to fix constexpr test case for both C++11 and C++14 variations.
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user