[Bug libstdc++/51453] Feature request: Implement Empty Base Optimization in std::tuple

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Dec 7 18:08:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51453

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-07 18:08:06 UTC ---
(In reply to comment #0)
> // 2 without tuple ebo (current), and 0 with tuple ebo

A complete object cannot have zero size.

std::tuple is exploiting the EBO *more* than it should (see PR 51365) but as
long as you don't use 'final' it will already do what you want



More information about the Gcc-bugs mailing list