PR libstdc++/70607 make proj(T) and conj(T) return complex<T>
commit9664fecd4d76d1404d1a25c58249d33fabc1341d
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jan 2017 15:01:05 +0000 (25 15:01 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jan 2017 15:01:05 +0000 (25 15:01 +0000)
tree493bd6545f0a7185424b11d26531ab57a6d3096f
parent2785d21c097c7003869e42cb73ca0536a387948d
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244900 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/complex
libstdc++-v3/include/tr1/complex
libstdc++-v3/testsuite/26_numerics/complex/dr781.cc [moved from libstdc++-v3/testsuite/26_numerics/complex/dr781_dr1137.cc with 67% similarity]
libstdc++-v3/testsuite/26_numerics/complex/value_operations/constexpr2.cc