Skip to content

US133 15.03 Header units containing internal-linkage entities P2003 P1815 #132

@wg21bot

Description

@wg21bot

It is not clear whether header-unit source code can contain internal-linkage entities.  For example the iostream header can contain:
  static ios_base::Ioinit __ioinit;
Is that permitted, or does it make the header file incompatible with being a header unit?

Proposed change:
Preference for internal linkage entities to be an error.  Thus library implementors will need an (implementation-defined) mechanism to know whether the header file is being textually included, or whether it is being processed to create a header-unit.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions