]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/testsuite/tr1/headers/c++200x/math.cc
libstdc++/69893 make <tr1/cmath> work with C++11
authorJonathan Wakely <jwakely@redhat.com>
Tue, 23 Feb 2016 19:49:31 +0000 (19:49 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 23 Feb 2016 19:49:31 +0000 (19:49 +0000)
commit9aee022eb9a1128e2fa620573c7b1bb8e953bc1a
treeecf77ef1368d8dc9101a1e1bad3eac912471613f
parent067fbd8b4b3a4af6d0948204e42b2f928c5e5282
libstdc++/69893 make <tr1/cmath> work with C++11

PR libstdc++/69893
* include/tr1/cmath (acosh, asinh, atanh, cbrt, copysign, erf, erfc,
exp2, expm1, fdim, fma, fmax, fmin, hypot, ilogb, lgamma, llrint,
llround, log1p, log2, logb, lrint, lround, nan, nearbyint, nextafter,
nexttoward, remainder, remquo, rint, round, scalbln, scalbn, tgamma,
trunc) [__cplusplus >= 201103L]: Import from namespace std.
(fabs) [__cplusplus < 201103L]: Import from namespace std.
* include/tr1/complex (acosh, asinh, atanh) [__cplusplus >= 201103L]:
Likewise.
* testsuite/tr1/headers/c++200x/complex.cc: Add std::fabs to global
namespace before including TR1 headers.
* testsuite/tr1/headers/c++200x/math.cc: New test.

From-SVN: r233644
libstdc++-v3/ChangeLog
libstdc++-v3/include/tr1/cmath
libstdc++-v3/include/tr1/complex
libstdc++-v3/testsuite/tr1/headers/c++200x/complex.cc
libstdc++-v3/testsuite/tr1/headers/c++200x/math.cc [new file with mode: 0644]