Skip to content

[ranges] Remove unnecessary constexpr specifier for view constructors - #9381

Open
hewillk wants to merge 1 commit into
cplusplus:mainfrom
hewillk:main-constexpr
Open

hewillk wants to merge 1 commit into
cplusplus:mainfrom
hewillk:main-constexpr

Conversation

@hewillk

@hewillk hewillk commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

These constructors do not need the constexpr specifier because they are defaults, which is consistent with other parts of [ranges].

@eisenwave eisenwave left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we're not globally consistent about it, but most sentinel() and iterator(), and some public constructors like zip_view() are defaulted without constexpr.

But I don't think we have any policy on this, and there is nothing objectively wrong with having that constexpr.

@eisenwave eisenwave added P2-Bug Presentational errors and omissions P3-Other Triaged issue not in P1 or P2 and removed P2-Bug Presentational errors and omissions labels Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3-Other Triaged issue not in P1 or P2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants