diff options
author | Edward Smith-Rowland <3dw4rd@verizon.net> | 2018-11-23 18:17:04 +0000 |
---|---|---|
committer | Edward Smith-Rowland <emsr@gcc.gnu.org> | 2018-11-23 18:17:04 +0000 |
commit | e987fb1ebecc7494f9869071e487deef70a792f6 (patch) | |
tree | d0291d3e39a50cd2ebfd7625833e1b8c288ad0e1 /gcc/expr.c | |
parent | e02669dbdf1d1099710dbc515f07d0b4785ae2fd (diff) |
Implement P0415 More constexpr for std::complex.
2018-11-23 Edward Smith-Rowland <3dw4rd@verizon.net>
Implement P0415 More constexpr for std::complex.
* include/std/complex (conj(complex<Tp>), norm(complex<Tp>)): Constexpr;
(real(Tp), imag(Tp)): Constexpr;
(operator@=(Tp), operator@=(complex<Tp>)): Constexpr;
(operator@(Tp,complex<Tp>), operator@(complex<Tp>,Tp)
operator@(complex<Tp>,complex<Tp>)): Constexpr.
* testsuite/26_numerics/complex/comparison_operators/
more_constexpr.cc: New test.
* testsuite/26_numerics/complex/operators/more_constexpr.cc: New test.
* testsuite/26_numerics/complex/requirements/
more_constexpr.cc: New test.
* testsuite/26_numerics/complex/value_operations/
more_constexpr.cc: New test.
* testsuite/26_numerics/headers/complex/synopsis.cc:
Add _GLIBCXX20_CONSTEXPR to applicable operators; Add missing proj().
* testsuite/26_numerics/headers/complex/synopsis.cc:
Add _GLIBCXX20_CONSTEXPR to relevant decls.
From-SVN: r266416
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions