From 393283b8efaba009ce57a78fa658f55fbf262551 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 10 Dec 2019 16:15:59 +0000 Subject: libstdc++: Define __cpp_lib_constexpr_complex macro This is LWG issue 3349. * include/std/complex (__cpp_lib_constexpr_complex): Define. * include/std/version (__cpp_lib_constexpr_complex): Likewise. * testsuite/26_numerics/complex/1.cc: New test. * testsuite/26_numerics/complex/2.cc: New test. From-SVN: r279172 --- libstdc++-v3/include/std/complex | 4 ++++ libstdc++-v3/include/std/version | 1 + 2 files changed, 5 insertions(+) (limited to 'libstdc++-v3/include/std') diff --git a/libstdc++-v3/include/std/complex b/libstdc++-v3/include/std/complex index 45450e8..d156d32 100644 --- a/libstdc++-v3/include/std/complex +++ b/libstdc++-v3/include/std/complex @@ -47,6 +47,10 @@ // Get rid of a macro possibly defined in #undef complex +#if __cplusplus > 201703L +# define __cpp_lib_constexpr_complex 201711L +#endif + namespace std _GLIBCXX_VISIBILITY(default) { _GLIBCXX_BEGIN_NAMESPACE_VERSION diff --git a/libstdc++-v3/include/std/version b/libstdc++-v3/include/std/version index 8e08dc9..e55a092 100644 --- a/libstdc++-v3/include/std/version +++ b/libstdc++-v3/include/std/version @@ -180,6 +180,7 @@ #if _GLIBCXX_HOSTED #define __cpp_lib_bind_front 201907L #define __cpp_lib_constexpr_algorithms 201806L +#define __cpp_lib_constexpr_complex 201711L #define __cpp_lib_constexpr_dynamic_alloc 201907L #define __cpp_lib_constexpr_invoke 201907L #define __cpp_lib_erase_if 201900L -- cgit v1.1