public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r12-4962] libstdc++: Fix pack expansions in tuple_size_v specializations Date: Fri, 5 Nov 2021 21:45:49 +0000 (GMT) [thread overview] Message-ID: <20211105214549.AC319385802B@sourceware.org> (raw) https://gcc.gnu.org/g:70d6f6e41f77269f7d293c6fbccf978680e68d2a commit r12-4962-g70d6f6e41f77269f7d293c6fbccf978680e68d2a Author: Jonathan Wakely <jwakely@redhat.com> Date: Fri Nov 5 21:40:58 2021 +0000 libstdc++: Fix pack expansions in tuple_size_v specializations libstdc++-v3/ChangeLog: * include/std/tuple (tuple_size_v): Fix pack expansion. Diff: --- libstdc++-v3/include/std/tuple | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/include/std/tuple b/libstdc++-v3/include/std/tuple index 46173935b64..36dc05d97bc 100644 --- a/libstdc++-v3/include/std/tuple +++ b/libstdc++-v3/include/std/tuple @@ -1346,11 +1346,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION #if __cplusplus >= 201703L template<typename... _Types> - inline constexpr size_t tuple_size_v<tuple<_Types>> + inline constexpr size_t tuple_size_v<tuple<_Types...>> = sizeof...(_Types); template<typename... _Types> - inline constexpr size_t tuple_size_v<const tuple<_Types>> + inline constexpr size_t tuple_size_v<const tuple<_Types...>> = sizeof...(_Types); #endif
reply other threads:[~2021-11-05 21:45 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20211105214549.AC319385802B@sourceware.org \ --to=redi@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).