Skip to content

Consider making a new index for macro names #6005

Open
@AlisdairM

Description

@AlisdairM

Macros are a very special kind of library name, that become more special in C++23.

First, by their nature as macros, they directly rewrite user source rather than participating in name lookup. It would be good to have such names collected in a single place to reference.

Secondly, the library is not the only source of macro names, given the compiler supplies some predefined macros.

Third, as of C++23, the user will not see any of those macros (other than compiler predefines) if they import std; rather than directly include library headers. I think this third point now presses the case for separating macros out of the library/compiler index, and into an index of their own.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions