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
P2012 Fix the range-based for loop #939
Comments
EWG saw this paper in today's telecon. Minutes There is a problem to be solved with range-based for loops and lifetime of temporaries.
A solution which might break existing code (such as the lock example Nico showed) is acceptable.
A solution which proposes a new kind of loop is worth exploring.
Adopt the wording proposed by Jens into P2012, and poll it at the next EWG quarterly polling period.
For future polls: assuming we go with Jens’ proposed wording, this is a defect going back to C++11, and want CWG to treat this as a defect report on prior Standards. |
P2012R1 Fix the range-based for loop, Rev1 (Nicolai Josuttis, Victor Zverovich, Arthur O'Dwyer, Filipe Mulonde) |
Seen at today's EWG telecon: POLL: send P2012r2 to EWG electronic polling for inclusion in C++23, not as a DR.
Result: no consensus. |
P2012R2 Fix the range-based for loop, Rev2 (Nicolai Josuttis, Victor Zverovich, Arthur O'Dwyer, Filipe Mulonde) |
Subsumed by #1316 |
P2012R0 Fix the range-based for loop, Rev0 (Nicolai Josuttis, Victor Zverovich, Arthur O'Dwyer, Filipe Mulonde)
The text was updated successfully, but these errors were encountered: