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:24:54 -0400
On Monday, 22 June 2026 07:23:49 Eastern Daylight Time Yexuan Xiao via Std-
Proposals wrote:
> It seems that some C code likes to use static inline to indicate that a
> function should be inlined

There's your good reason right over there *not* to do it: C compatibility.

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

Received on 2026-06-22 15:25:05