OSDN Git Service

2009-11-06 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / include / std / ostream
index 136c3d6..d6241ba 100644 (file)
@@ -533,8 +533,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
    *
    *  This manipulator is often mistakenly used when a simple newline is
    *  desired, leading to poor buffering performance.  See
-   *  http://gcc.gnu.org/onlinedocs/libstdc++/27_io/howto.html#2 for more
-   *  on this subject.
+   *  http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt11ch25s02.html
+   *  for more on this subject.
   */
   template<typename _CharT, typename _Traits>
     inline basic_ostream<_CharT, _Traits>& 
@@ -575,12 +575,9 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
    *  that take an lvalue reference.
   */
   template<typename _CharT, typename _Traits, typename _Tp>
-  basic_ostream<_CharT, _Traits>&
-  operator<<(basic_ostream<_CharT, _Traits>&& __os, const _Tp& __x)
-  {
-    __os << __x;
-    return __os;
-  }
+    inline basic_ostream<_CharT, _Traits>&
+    operator<<(basic_ostream<_CharT, _Traits>&& __os, const _Tp& __x)
+    { return (__os << __x); }
 #endif // __GXX_EXPERIMENTAL_CXX0X__
 
 _GLIBCXX_END_NAMESPACE