This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/9925] ostrstream (buf, size) << "..." does not work properly
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Oct 2007 17:32:10 -0000
- Subject: [Bug libstdc++/9925] ostrstream (buf, size) << "..." does not work properly
- References: <bug-9925-5583@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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