From: Jonathan Wakely <jwakely@redhat.com>
To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] Make std::invoke usable in constant expressions
Date: Thu, 24 Oct 2019 23:22:00 -0000 [thread overview]
Message-ID: <20191024232229.GY4169@redhat.com> (raw)
In-Reply-To: <20191023192856.GA9608@redhat.com>
On 23/10/19 20:28 +0100, Jonathan Wakely wrote:
> * include/std/functional (invoke): Add constexpr for C++20.
> * include/std/version (__cpp_lib_constexpr_invoke): Define.
> * testsuite/20_util/function_objects/invoke/constexpr.cc: New test.
>
>This is an easy one, because I already made std::__invoke constexpr,
>so all that's needed for C++20 is to add _GLIBCXX20_CONSTEXPR to the
>public std::invoke function that calls std::__invoke.
For some reason I thought this change only affected std::invokee, but
P1065R2 affects other functions too. I'll fix those tomorrow.
next prev parent reply other threads:[~2019-10-24 23:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-23 19:29 Jonathan Wakely
2019-10-24 23:22 ` Jonathan Wakely [this message]
2019-10-31 23:03 ` Jonathan Wakely
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=20191024232229.GY4169@redhat.com \
--to=jwakely@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=libstdc++@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: link
Be 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).