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/std/complex | |
parent | b65bdd27fd96afa3074308de18d6a54c67ba6aef (diff) | |
download | gcc-393283b8efaba009ce57a78fa658f55fbf262551.tar.gz |
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/std/complex')
-rw-r--r-- | libstdc++-v3/include/std/complex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++-v3/include/std/complex b/libstdc++-v3/include/std/complex index 45450e8ca01..d156d3249a7 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 |