This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Test for C++20 p0858 - ConstexprIterator requirements.
- From: Ville Voutilainen <ville dot voutilainen at gmail dot com>
- To: Ed Smith-Rowland <3dw4rd at verizon dot net>
- Cc: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>, Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Date: Sat, 1 Jun 2019 01:29:28 +0300
- Subject: Re: Test for C++20 p0858 - ConstexprIterator requirements.
- References: <a16d4ac2-f12e-d3a7-4593-aa9dd490ee1f@verizon.net>
On Sat, 1 Jun 2019 at 01:24, Ed Smith-Rowland via libstdc++
<libstdc++@gcc.gnu.org> wrote:
>
> Greetings,
>
> Iterators for <array> and <string_view> are usabe in a constexpr context
> since C++2017.
>
> This just adds a compile test to make sure and check a box for C++20
> p0858 - ConstexprIterator requirements.
Those tests don't use the iterators in a constexpr context. To do
that, maybe do those std::copy operations
in a constexpr function and then initialize a constexpr variable with
the result of a call to that function?