Skip to content

P3060R3 Add std::views::indices(n) #8006

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jwakely
Copy link
Member

@jwakely jwakely commented Jun 23, 2025

Fixed "if T models is-integer-like" which is a category error because that's a variable template not a concept.

Fixes #7966 7966

Fixed "if T models is-integer-like" which is a category error because
that's a variable template not a concept.
@jwakely jwakely force-pushed the motions-2025-06-lwg-29 branch from a3e0ddf to 8d14291 Compare June 23, 2025 19:42
\tcode{views::indices(E)} is expression-equivalent to
\tcode{views::iota(T(0), E)}
if \tcode{\exposid{is-integer-like}<T>} is \tcode{true},
and ill-formed otherwise.
Copy link
Member Author

Choose a reason for hiding this comment

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

Do we want this?

Suggested change
and ill-formed otherwise.
and is ill-formed otherwise.

Copy link
Member

Choose a reason for hiding this comment

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

I think it's fine either way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[2025-06 LWG Motion 29] P3060R3 Add std::views::indices(n)
2 participants