Commit bd7d4f5f by Paolo Carlini Committed by Paolo Carlini

complex (fabs): In C++0x mode adjust return type per DR 595 [Ready].

2007-11-07  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1_impl/complex (fabs): In C++0x mode adjust
	return type per DR 595 [Ready].

From-SVN: r129983
parent 24c1b08d
2007-11-07 Paolo Carlini <pcarlini@suse.de>
* include/tr1_impl/complex (fabs): In C++0x mode adjust
return type per DR 595 [Ready].
2007-11-07 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_iterator.h (move_iterator<>::pointer): Adjust
typedef per DR 680 [Ready].
......
......@@ -44,7 +44,12 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
template<typename _Tp> std::complex<_Tp> acosh(const std::complex<_Tp>&);
template<typename _Tp> std::complex<_Tp> asinh(const std::complex<_Tp>&);
template<typename _Tp> std::complex<_Tp> atanh(const std::complex<_Tp>&);
#ifdef _GLIBCXX_INCLUDE_AS_CXX0X
// DR 595.
template<typename _Tp> _Tp fabs(const std::complex<_Tp>&);
#else
template<typename _Tp> std::complex<_Tp> fabs(const std::complex<_Tp>&);
#endif
/// @brief acos(__z) [8.1.2].
// Effects: Behaves the same as C99 function cacos, defined
......@@ -288,7 +293,11 @@ _GLIBCXX_BEGIN_NAMESPACE_TR1
// Effects: Behaves the same as C99 function cabs, defined
// in subclause 7.3.8.1.
template<typename _Tp>
#ifdef _GLIBCXX_INCLUDE_AS_CXX0X
inline _Tp
#else
inline std::complex<_Tp>
#endif
fabs(const std::complex<_Tp>& __z)
{ return std::abs(__z); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment