This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: [Patch] Simplify basic_streambuf::setg() and setp()?


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.


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