Skip to content
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

LWG-3392 ranges::distance() cannot be used on a move-only iterator with a sized sentinel #2392

Closed
StephanTLavavej opened this issue Dec 11, 2021 · 0 comments · Fixed by #2421
Labels
fixed Something works now, yay! LWG Library Working Group issue ranges C++20/23 ranges

Comments

@StephanTLavavej
Copy link
Member

LWG-3392 ranges::distance() cannot be used on a move-only iterator with a sized sentinel

This was voted into the Working Paper in October 2021, see #2236.

@StephanTLavavej StephanTLavavej added LWG Library Working Group issue ranges C++20/23 ranges labels Dec 11, 2021
CaseyCarter added a commit to CaseyCarter/STL that referenced this issue Dec 11, 2021
Cleanup conditional `noexcept` while we're here, and add test coverage.

Fixes microsoft#2392
@StephanTLavavej StephanTLavavej added the fixed Something works now, yay! label Jan 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed Something works now, yay! LWG Library Working Group issue ranges C++20/23 ranges
Projects
Status: Done
1 participant