[Patch] Substantive ostream bits of libstdc++/28277
Paolo Carlini
pcarlini@suse.de
Fri Oct 13 16:53:00 GMT 2006
Hi,
the below fixes the actual testcases reported in the PR and now only the
arithmetic inserters remain to be fixed. The idea is simply outputting
padding chars and chars in the proper order, instead of constructing the
result in a temporary buffer (allocated on the stack). Something I like
about the fix solicited by the PR is that the work is done in a single
new _M_insert, which is reused for 6 different inserters overall, thus
reducing ostream.tcc to the minimal terms. The PR also prompted
implementing the proposed resolution of DR 586: I hope you all agree
with me that whereas not ready yet seems pretty straightforward,
otherwise we have to special case string inserters.
Tested x86/ia64-linux, will wait a while before going ahead (if people
prefer I can add the 2 new exports @3.4.10 instead of the current 3.4.9,
just let me know)
Paolo.
/////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_28277_ostream
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20061013/51e7b1d3/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_28277_ostream
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20061013/51e7b1d3/attachment-0001.ksh>
More information about the Libstdc++
mailing list