C++ Logo


Advanced search

Re: std::is_constexpr_constructible (/ std::is_constexpr)

From: Thiago Macieira <thiago_at_[hidden]>
Date: Mon, 25 Oct 2021 14:07:56 -0700
On Monday, 25 October 2021 10:50:08 PDT Michael Scire via Std-Proposals wrote:
> But if a language level facility was under consideration, I would actually
> propose `consteval(expr)` as returning whether or not an expression is
> constant evaluable?

That still violates DRY the same way noexcept(expr) does: I want to know if
expr is $PROPERTY, so I need to write it twice.

Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DPG Cloud Engineering

Received on 2021-10-25 16:08:26