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: forwarded message from Jerry Quinn


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.


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