This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3 PATCH] Make optional::reset noexcept, make optional::value work in constant expressions.
- From: Ville Voutilainen <ville dot voutilainen at gmail dot com>
- To: Jonathan Wakely <jwakely at redhat dot com>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 29 Sep 2016 18:14:37 +0300
- Subject: Re: [v3 PATCH] Make optional::reset noexcept, make optional::value work in constant expressions.
- Authentication-results: sourceware.org; auth=none
- References: <CAFk2RUbyjY=3K9YYZ3a7ifthHEjbSHwwrKsH6D8GAAZa1HHbWw@mail.gmail.com> <20160929144302.GO29482@redhat.com>
On 29 September 2016 at 17:43, Jonathan Wakely <jwakely@redhat.com> wrote:
>> +int main()
>> +{
>> + static_assert(test());
>> +}
>
>
> Can this second test use { dg-do compile } instead?
Yes it can, and it should (we shouldn't run what we don't need to run,
the suite is
heavy-weight enough already), well spotted. I'll fix that before committing.