mirror of
https://github.com/boostorg/config.git
synced 2025-08-01 05:14:28 +02:00
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 { };
|
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;
|
constexpr const A a = 42;
|
||||||
|
#endif
|
||||||
|
|
||||||
X<a> xx; // OK: unique conversion to int
|
X<a> xx; // OK: unique conversion to int
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user