complex (complex<>::real(_Tp), [...]): Add per DR 387.
authorPaolo Carlini <paolo.carlini@oracle.com>
Sun, 25 May 2008 18:59:19 +0000 (18:59 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 25 May 2008 18:59:19 +0000 (18:59 +0000)
commit23ed71c60c5a2783c092a00cd39133c2f057d4dc
treeb3a4f720e115cd023d9f9984f7ecd887e8198454
parent5ec81069e5422ce9e606abc35ff3152a9478caf5
complex (complex<>::real(_Tp), [...]): Add per DR 387.

2008-05-25  Paolo Carlini  <paolo.carlini@oracle.com>

* include/std/complex (complex<>::real(_Tp), complex<>::imag(_Tp),
complex<float>::real(float), complex<float>::imag(float),
complex<double>::real(double), complex<double>::imag(double),
complex<long double>::real(long double),
complex<long double>::imag(long double)): Add per DR 387.
(complex<>::real(), complex<>::imag(), complex<float>::real(),
complex<float>::imag(), complex<double>::real(),
complex<double>::imag(), complex<long double>::real(),
complex<long double>::imag(long double)): Adjust in C++0x mode.
(real(complex<>&), imag(complex<>&), real(const complex<>&),
imag(const complex<>&)): Likewise.
* testsuite/26_numerics/complex/dr387.cc: New.
* doc/xml/manual/intro.xml: Add an entry for DR 387.

From-SVN: r135878
libstdc++-v3/ChangeLog
libstdc++-v3/doc/xml/manual/intro.xml
libstdc++-v3/include/std/complex
libstdc++-v3/testsuite/26_numerics/complex/dr387.cc [new file with mode: 0644]