This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/53648] [C++11] nested empty tuples
- From: "chesstr at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 12 Jun 2012 18:03:56 +0000
- Subject: [Bug libstdc++/53648] [C++11] nested empty tuples
- Auto-submitted: auto-generated
- References: <bug-53648-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53648
--- Comment #4 from chesstr at hotmail dot com 2012-06-12 18:03:56 UTC ---
(In reply to comment #3)
> There are other cases involving non-empty tuples that will still result in an
> ambiguity e.g.
>
> struct A { };
> auto d = tuple<tuple<tuple<A, A>, A>, A>{};
>
> My solution avoids using the EBO for some condition I don't remember (the
> code's on another machine) but it handles all the cases I tested.
>
> I also preserve the property that sizeof(tuple<char, tuple<>>)==1, which I
> think your suggestion loses.
You are right, the suggestion does not solve the real problem at all. Nice
example.