[Patch] Fix libstdc++/9318

Paolo Carlini pcarlini@unitus.it
Sun Feb 9 12:31:00 GMT 2003


Hi!

This one seems needed for unbuffered custom streambufs
(using, f.i., std::string, as in testcase) to interact
with ostream::operator>>/<< : in fact a custom streambuf
has no _standard_ (*) way to change _M_mode (other than
callling setg/setp, unused for this kind of custom buffers).

Also double checked the testcase with a couple of other
implementations.

Tested x86-linux, ok trunk and 3_3?

Paolo.

(*) Of course, _for v3_ a:

     Outbuf() { _M_mode = _M_mode | ios_base::out; }

could be added to the custom buffer of the testcase...

//////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_9318
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030209/9016b6d8/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_9318
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030209/9016b6d8/attachment-0001.ksh>


More information about the Libstdc++ mailing list