C++ Logo

std-proposals

Advanced search

Re: [std-proposals] unimplemented attribute

From: Thiago Macieira <thiago_at_[hidden]>
Date: Thu, 20 Mar 2025 14:14:17 -0700
On Thursday, 20 March 2025 12:20:09 Pacific Daylight Time Hans Ã…berg via Std-
Proposals wrote:
> The idea is to being able to suppress diagnostics by adding a declaration of
> the same function without it, in any order of appearance. It would probably
> be up to the compiler writer to decide what to do.

What happens if someone forward-declares the function? Does this appearance
cause the compiler to conclude it is implemented? What happens if it is before
the [[unimplemented]] attribute? What happens if the #include order is not the
same?

That's why I said this should be another attribute, one which has a higher
precedence.

What happens if I declare that I am overriding but it wasn't marked
[[unimplemented]]?

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel DCAI Platform & System Engineering

Received on 2025-03-20 21:14:22