]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/testsuite/26_numerics/headers/cmath/overloads.cc
re PR libstdc++/3181 (Unable to use sqrt,cos,sin,... with int argument.)
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Sun, 11 May 2003 09:07:17 +0000 (09:07 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Sun, 11 May 2003 09:07:17 +0000 (09:07 +0000)
commitcdc958d823386608ae27e2cda751711595dd838d
tree461d69e0788dca2c949e2cf6b54556cd5cdfdace
parente1112e60cb9d8f22517caf306fa1a7e1584855e0
re PR libstdc++/3181 (Unable to use sqrt,cos,sin,... with int argument.)

PR libstdc++/3181
* include/c_std/std_cmath.h: #include <bits/cpp_type_traits.h>
(acos): Handle integer argument.
(asin): Likewise.
(atan): Likewise.
(atan2): Likewise.
(ceil): Likewise.
(cos): Likewise.
(cosh): Likewise.
(exp): Likewise.
(fabs): Likewise.
(floor): Likewise.
(frexp): Likewise.
(ldexp): Likewise.
(log): Likewise.
(log10): Likewise.
(sin): Likewise.
(sinh): Likewise.
(sqrt): Likewise.
(tan): Likewise.
(tanh): Likewise.
* include/bits/cpp_type_traits.h (__are_same<>): New traits.
(__enable_if): Likewise.
* testsuite/26_numerics/cmath/overloads.C: New test.

From-SVN: r66681
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/cpp_type_traits.h
libstdc++-v3/include/c_std/std_cmath.h
libstdc++-v3/testsuite/26_numerics/cmath/overloads.C [new file with mode: 0644]