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]

Opinions on libstdc++/3955 patch?



There's a tweak in the audit trail for PR 3955 that I'd like to apply,
with a suitable testcase and documentation.

Briefly, if a user supplies an initial string for an ostringstream, it only
serves to initially size the buffer.  We overwrite the contents by default.
(I don't think this is what was intended, but none of 14882, the LWG issues
list #19, and Google/Deja ("Gooja"?) have any comments.)

Right now we append to the buffer iff the :ate openmode is given; this is
purely our implementation choice to the best of my knowledge.  The proposal
is to also append if :app is given, which to me seems only obvious.

Thoughts?


Phil

-- 
Would I had phrases that are not known, utterances that are strange, in
new language that has not been used, free from repetition, not an utterance
which has grown stale, which men of old have spoken.
                                     - anonymous Egyptian scribe, c.1700 BC


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