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

2009-08-03 Thread paolo dot carlini at oracle dot com


--- Comment #27 from paolo dot carlini at oracle dot com  2009-08-03 20:28 
---
The rvalue stream inserter is now available in C++0x mode.


-- 

paolo dot carlini at oracle dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.5.0


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



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

2007-10-26 Thread jason 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
  basic_ostream& operator<<(basic_ostream&& 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