[Patch] libstdc++/28080: tr1/random
Paolo Carlini
pcarlini@suse.de
Thu Mar 1 11:00:00 GMT 2007
Hi,
some tr1/random bits: the idea is avoiding the heavy <fstream> and use
instead <cstdio> facilities for the simple goals of random_device: then,
by tweaking all the inserters and extractors as we already did elsewhere
to refer to ios_base as a base of basic_istream or basic_ostream, we can
end up including only <cstdio> and <iosfwd>, thus obtaining a
preprocessed <tr1/random> about half the size. There is an ABI issue in
random_device, because we have now a FILE* member instead, but since we
never released <tr1/random> we can elegantly solve the issue by applying
this patch to 4_2-branch too, besides mainline.
Tested x86-linux.
Paolo.
///////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_28080_penta_small
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20070301/6fdd9879/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_28080_penta_small
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20070301/6fdd9879/attachment-0001.ksh>
More information about the Libstdc++
mailing list