C++ Logo

std-proposals

Advanced search

Re: [std-proposals] [[unevaluated]]

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Tue, 19 May 2026 19:22:16 +0000
On Tuesday, May 19, 2026, Steve Weinrich via Std-Proposals <
std-proposals_at_[hidden]> wrote:


The compiler is free to ignore attributes, but not static_assert.
>
>
>>

That will definitely change at some point. No way will attributes always be
ignorable.

static_assert won't help with the following:

    return some_optional.value();

in cases where the 'optional' object doesn't contain a valid. But of course
it doesn't matter in an unevaluated context.

Received on 2026-05-19 19:22:21