[Patch] Simplify basic_streambuf::setg() and setp()?
Paolo Carlini
pcarlini@unitus.it
Wed May 7 07:40:00 GMT 2003
Benjamin Kosnik wrote:
>>The point is: I have checked the standard and a couple of
>>other implementations and cannot find support for the final
>>'if' of our current setg() and setp().
>>
>>
>Then how does pubsetbuf work? If you test this, you'll find test results
>that fail, as we try to keep the v2 implementation-defined behavior here.
>
Well, of course I tested it, and no testresults failed!
Anyway, I agree that the behaviour of pubsetbuf changes, since setbuf
calls _M_set_indeterminate
and, inside it, there are __testin and __testout.
Again, I don't think that, according to the standard, setp and setg are
supposed to change the open mode, but if you tell me that this is for
consistency with v2... Agreed.
Paolo.
More information about the Libstdc++
mailing list