C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Attribute [[discard]] and attributes on expressions

From: Thiago Macieira <thiago_at_[hidden]>
Date: Thu, 12 Oct 2023 10:26:58 -0700
On Thursday, 12 October 2023 06:57:09 PDT Sebastian Wittmeier via Std-
Proposals wrote:
> As Arthur wrote, you probably do not want to have [[maybe_unused]] active
> for SOME_PLATFORM, too.

Indeed.

I don't want "maybe unused". I want a "definitely unused" attribute in my code,
instead. "Maybe unused" is useful if you don't care either way, but if I want
to be sure which way it was, it doesn't work.

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

Received on 2023-10-12 17:27:01