[Patch] Clean up tr1/tuple

Paolo Carlini pcarlini@suse.de
Tue Mar 13 01:43:00 GMT 2007


Hi,

as soon as the variadic templates work stabilizes a bit, I'd like to 
apply this patch, which reduces to the bare minimum the size of the 
preprocessed tr1/tuple, to wit, from ~ 500 KB to ~ 15 KB (!). As far as 
I can see we are unnecessarily including <functional>, whereas a forward 
declaration of reference_wrapper is now all we need. ref_fwd.h also goes 
away, no need now to forward declare ref and cref.

tuple_defs.h can also be removed, that seems an unrelated, trivial clean up.

Tested x86_64-linux. Doug, can you double check?

Paolo.

/////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_tr1_cu
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20070313/33ae77b0/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_tr1_cu
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20070313/33ae77b0/attachment-0001.ksh>


More information about the Libstdc++ mailing list