C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Proposal: Deprecate namespace-scope declarations that are declared both static and inline

From: Thiago Macieira <thiago_at_[hidden]>
Date: Mon, 22 Jun 2026 11:27:21 -0400
On Monday, 22 June 2026 09:27:18 Eastern Daylight Time Yexuan Xiao via Std-
Proposals wrote:
> What I actually care about is code that intentionally serves C++ (with UCRT
> and Clang SIMD headers being typical examples), and as I have emphasized,
> some code that is entirely written in C++ also misuses static inline. I
> will not insist that libraries which do not like C++ should support C++; in
> that case, C++ users will need to do some extra work anyway.

Then that's a problem of those C++ libraries. Report a bug to them and have
them address it. Changing the language to force the issue is not the way to
go.

You *can* request your preferred compiler implement this as a warning enabled
at suitable levels.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel Data Center - Platform & Sys. Eng.

Received on 2026-06-22 15:27:26