[patch] libstdc++/56785 reduce space overhead of nested tuples
H.J. Lu
hjl.tools@gmail.com
Tue Jan 20 17:09:00 GMT 2015
On Fri, Jan 16, 2015 at 4:23 PM, Jonathan Wakely <jwakely@redhat.com> wrote:
> 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.
This may have caused:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64695
--
H.J.
More information about the Libstdc++
mailing list