Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[map.overview] Missing constexpr for explicit map(const Allocator&) #8044

Closed
@ckwastra

Description

@ckwastra

P3372R3 states:

Notes for wording changes

Mechanically mark all functionality in [container] constexpr with exception of node-handle::mapped() (which is subject of CWG-2514). Also make sure all iterator types are constexpr.

However, in the wording of that paper, a notable omission is the constructor explicit map(const Allocator&), which is not marked as constexpr:

draft/source/containers.tex

Lines 11568 to 11570 in aaa2220

constexpr map(map&& x);
explicit map(const Allocator&);
constexpr map(const map&, const type_identity_t<Allocator>&);

I believe this is an editorial issue.1

Footnotes

  1. This issue has been discussed in the Cpplang Slack.

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