C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Make inline implicit for static data members with in-class initialiser

From: ஜெய்கணேஷ் குமரன் <jaiganesh.kumaran_at_[hidden]>
Date: Thu, 18 Jan 2024 15:46:56 +0000
Would the linker be able to detect, if some translation units use "static type s_member = ...;" and some translation units have the static member variable defined as "static type s_member;" for primitive and class types? Would the correct constructor be called?
Would it work without ABI break, even if one of the translation units was compiled with an old compiler? Even for dynamic libraries?

It should be as if the inline keyword was placed there explicit - that's it.

Received on 2024-01-18 15:47:06