r266416 - in /trunk/libstdc++-v3: ChangeLog inc...

emsr@gcc.gnu.org emsr@gcc.gnu.org
Fri Nov 23 18:17:00 GMT 2018


Author: emsr
Date: Fri Nov 23 18:17:04 2018
New Revision: 266416

URL: https://gcc.gnu.org/viewcvs?rev=266416&root=gcc&view=rev
Log:

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.


Added:
    trunk/libstdc++-v3/testsuite/26_numerics/complex/comparison_operators/more_constexpr.cc
    trunk/libstdc++-v3/testsuite/26_numerics/complex/operators/
    trunk/libstdc++-v3/testsuite/26_numerics/complex/operators/more_constexpr.cc
    trunk/libstdc++-v3/testsuite/26_numerics/complex/requirements/more_constexpr.cc
    trunk/libstdc++-v3/testsuite/26_numerics/complex/value_operations/more_constexpr.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/std/complex
    trunk/libstdc++-v3/testsuite/26_numerics/headers/complex/synopsis.cc



More information about the Libstdc++-cvs mailing list