This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51453] Feature request: Implement Empty Base Optimization in std::tuple
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Dec 2011 18:08:06 +0000
- Subject: [Bug libstdc++/51453] Feature request: Implement Empty Base Optimization in std::tuple
- Auto-submitted: auto-generated
- References: <bug-51453-4@http.gcc.gnu.org/bugzilla/>
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