[patch] libstdc++/56785 reduce space overhead of nested tuples

Jonathan Wakely jwakely@redhat.com
Sat Jan 17 00:23:00 GMT 2015


This replaces the current empty _Tuple_impl that terminates the
recursive inheritance hierarchy, instead adding the extra code to the
last base class that holds data so that the recursion terminates there
instead.

The purpose of this is to avoid nested tuples having two instances of
the same _Tuple_impl<N> base class, which cannot be placed at the same
address and so take up space despite being empty.

Tested x86_64-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 7063 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150117/6ecc314f/attachment.bin>


More information about the Libstdc++ mailing list