forwarded message from Jerry Quinn

Paolo Carlini pcarlini@unitus.it
Thu Feb 13 17:17:00 GMT 2003


Benjamin Kosnik wrote:

>>If in the next few hours nobody obejcts I will commit this change to 
>>both trunk and 3_3.
>>    
>>
>looks good, but can you synch up both in and out sentries to do the right thing?
>
Before the fix for 9563, istream::sentry was already doing the right 
thing. Now ostream::sentry also does, only, a bit less efficiently than 
it could, as pointed out by Jerry. Changing:

    if (__os.good() && __os.tie())

to

    if (__os.tie() && __os.good())

fixes this performance bit.

Paolo.



More information about the Libstdc++ mailing list