PR libstdc++/70607 make proj(T) and conj(T) return complex<T>
authorJonathan Wakely <jwakely@redhat.com>
Wed, 25 Jan 2017 15:01:05 +0000 (15:01 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 25 Jan 2017 15:01:05 +0000 (15:01 +0000)
commit536c221d20d42459739e34e3a5aba8268cf48a6f
tree493bd6545f0a7185424b11d26531ab57a6d3096f
parenta5d6927fef24c2cae73e473f8c997631eeb63152
PR libstdc++/70607 make proj(T) and conj(T) return complex<T>

PR libstdc++/61791
PR libstdc++/70607
* include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
(proj(T), conj(T)): Change return types per DR 1522.
* include/tr1/complex (conj): Remove overloads and use std::conj.
* testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
* testsuite/26_numerics/complex/dr781.cc: ... this, and update.
* testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
real(T) and imag(T). Allow testing for C++11 too.

From-SVN: r244900
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/complex
libstdc++-v3/include/tr1/complex
libstdc++-v3/testsuite/26_numerics/complex/dr781.cc [new file with mode: 0644]
libstdc++-v3/testsuite/26_numerics/complex/dr781_dr1137.cc [deleted file]
libstdc++-v3/testsuite/26_numerics/complex/value_operations/constexpr2.cc