cplusplus / nbballot

Handling of NB comments in response to ballots
14 stars 4 forks source link

US 25-060 10.3p6 [module.import] Allow "static inline" names in header units #497

Closed wg21bot closed 1 year ago

wg21bot commented 1 year ago

After implementation and deployment of this rule and the paragraphs (6.3) referenced in the note, it turns out that functions defined “static inline” in headers (often shared between C and C++) are more common than realized and the restriction of not being them to refer such names/entities constitutes a huge practical usability problem

Proposed change:

Permit uses of names/entities defined as “static inline” in header units, and problem that each translation unit that odr-uses those names as a TU-local copy of those definitions, which corresponds to the behaviour if the header units had been #included.

jfbastien commented 1 year ago

Duplicate: https://github.com/cplusplus/nbballot/issues/427

erichkeane commented 1 year ago

No objection to unanimous consent that this is a duplicate as stated above.