C++ Logo

std-proposals

Advanced search

Re: std::error magic function

From: connor horman <chorman64_at_[hidden]>
Date: Fri, 6 Mar 2020 11:07:06 -0500
constinit won't downgrade (as the standard requires a constant expression
initializer). I did forget about that.

On Fri, 6 Mar 2020 at 10:13, Thiago Macieira via Std-Proposals <
std-proposals_at_[hidden]> wrote:

> On Friday, 6 March 2020 06:46:56 PST connor horman via Std-Proposals wrote:
> > Currently it is not possible to implement std::error in a way that it
> will
> > work with initializing non-constexpr variables. Throwing an exception
> > simply downgrades to runtime, only erroring if the result is needed at
> > compile time.
>
> Does that also apply to constinit variables?
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> Software Architect - Intel System Software Products
>
>
>
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>

Received on 2020-03-06 10:10:04