diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-12-10 16:15:59 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-12-10 16:15:59 +0000 |
commit | 393283b8efaba009ce57a78fa658f55fbf262551 (patch) | |
tree | 329584510b113a20333a80ddb4c8ac6ca0358b35 /libstdc++-v3/include | |
parent | b65bdd27fd96afa3074308de18d6a54c67ba6aef (diff) | |
download | gcc-393283b8efaba009ce57a78fa658f55fbf262551.zip gcc-393283b8efaba009ce57a78fa658f55fbf262551.tar.gz gcc-393283b8efaba009ce57a78fa658f55fbf262551.tar.bz2 |
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
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r-- | libstdc++-v3/include/std/complex | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/std/version | 1 |
2 files changed, 5 insertions, 0 deletions
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 <complex.h> #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 |