This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/9925] ostrstream (buf, size) << "..." does not work properly



------- Comment #26 from jason at gcc dot gnu dot org  2007-10-26 17:32 -------
Changed component to libstdc++.  This problem should be fixed by adding rvalue
reference support to iostreams; the current working paper calls for

template<class traits>
  basic_ostream<char,traits>& operator<<(basic_ostream<char,traits>&& out,
                                         const unsigned char* s);

which should make the original testcase work as expected.  Though I find it
surprising that this signature returns an lvalue reference rather than rvalue.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bkoz at redhat dot com
          Component|c++                         |libstdc++


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9925


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]