C++ Logo

std-proposals

Advanced search

Re: [std-proposals] unimplemented attribute

From: Thiago Macieira <thiago_at_[hidden]>
Date: Thu, 20 Mar 2025 11:11:45 -0700
On Thursday, 20 March 2025 10:15:12 Pacific Daylight Time Hans Åberg via Std-
Proposals wrote:
> If a declaration is marked “unimplemented”, then also the definition must
> have it. If implemented in a later compiler version, then this label is
> reoved, and the linker chooses the definition without the label.

An unimplemented implementation is an oxymoron. Instead, I'd recommend you add
another attribute to override the unimplemented marker and say it has been
implemented.

> A similar linker override already exists for global operator new.

Which is very special and does not work across DLLs on Windows. Do not copy
this precedent. This is even less workable because it requires linker changes.

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

Received on 2025-03-20 18:11:48