C++ Logo

std-proposals

Advanced search

Re: [std-proposals] static static variable inside template function

From: Giuseppe D'Angelo <giuseppe.dangelo_at_[hidden]>
Date: Tue, 3 Oct 2023 19:28:29 +0200
On 03/10/2023 19:17, Frederick Virchanza Gotham via Std-Proposals wrote:
> How about if we could specify inside a template function that a
> variable is 'static static', meaning that it's shared by all
> instantiations?

I.e. SCARY (N2911 and follow-ups). Having proper language support for it
would be "interesting", but again, yours isn't a proposal, it's just a
random syntactic idea.

-- 
Giuseppe D'Angelo

Received on 2023-10-03 17:28:33