From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2332D38618C0; Tue, 14 Jul 2020 16:32:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2332D38618C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594744359; bh=FSRyoYpuUZ3fHhbPmFsumadkCiPFlRoSE9cuLWWmSzs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MoxW3XXYrFFcAflz5aBJay6ikNzsTyD8ebv1YgaTSEKGRFwNlZSOO3rJI4EDafXMX BeuHeMiVHqb/J8gKksgHm0dgWoszc3QOr2g4xQF80vo2yds/QiPt4TMR6e3mrVvyZL 6Iwlor47yO1thPNcFdiPNKvZKpCeMxE04/HDCr2Q= From: "wjwray at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96185] Enhancement: Please add a builtin to count bindings in [dcl.struct.bind] Date: Tue, 14 Jul 2020 16:32:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: wjwray at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2020 16:32:39 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96185 --- Comment #9 from Will Wray --- An earlier draft had __builtin_tuple_size as the magic behind the P2141 proposed std::tuple_size automagic generalization to Case 3 class types. There was opposition to that name because it specifically doesn't apply to tuples so I left the naming open, suggesting __builtin_binding_count (and, so, requiring consensus on naming for portability...)=