This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]