+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
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
// 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); }