Skip to content

Names from namespace std::pmr need to be qualified LWG 2818 #2269

@jwakely

Description

@jwakely

[contents] says:

Whenever a name x defined in the standard library is mentioned, the name x is assumed to be fully qualified as ::std::x, unless explicitly described otherwise.

Names in subclause [mem.res] are in the nested namespace std::pmr so names like get_default_resource() need to be qualified, otherwise [contents] means that it refers to ::std::get_default_resource() (which doesn't exist).

Maybe at the start of a subclause like [mem.res] we need to say that for the rest of the subclause names are fully qualified as either ::std::x or std::pmr::x as appropriate.

[time] and [filesystem] have similar issues for names in ::std::chrono and std::filesystem respectively. See also #1793.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lwgIssue must be reviewed by LWG.not-editorialIssue is not deemed editorial; the editorial issue is kept open for tracking.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions