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

P2012 Fix the range-based for loop #939

Closed
wg21bot opened this issue Nov 23, 2020 · 5 comments
Closed

P2012 Fix the range-based for loop #939

wg21bot opened this issue Nov 23, 2020 · 5 comments
Labels
EWG Evolution
Milestone

Comments

@wg21bot
Copy link
Collaborator

wg21bot commented Nov 23, 2020

P2012R0 Fix the range-based for loop, Rev0 (Nicolai Josuttis, Victor Zverovich, Arthur O'Dwyer, Filipe Mulonde)

@wg21bot wg21bot added CWG Core EWG Evolution labels Nov 23, 2020
@wg21bot wg21bot added this to the 2020-telecon milestone Nov 23, 2020
@jensmaurer jensmaurer changed the title P2012 Fix the range-based for loop, Rev0ix the range-based for loop P2012 Fix the range-based for loop Nov 23, 2020
@jensmaurer jensmaurer removed the CWG Core label Nov 23, 2020
@jensmaurer jensmaurer modified the milestones: 2020-telecon, 2021-telecon Dec 28, 2020
@jfbastien
Copy link
Collaborator

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.

SF F N A SA
17 10 2 0 0

A solution which might break existing code (such as the lock example Nico showed) is acceptable.

SF F N A SA
3 15 7 4 0

A solution which proposes a new kind of loop is worth exploring.

SF F N A SA
0 6 10 8 3

Adopt the wording proposed by Jens into P2012, and poll it at the next EWG quarterly polling period.

SF F N A SA
5 9 5 7 0

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.

@jfbastien jfbastien added the needs-revision Paper needs changes before it can proceed label Jan 28, 2021
@wg21bot
Copy link
Collaborator Author

wg21bot commented Sep 20, 2021

P2012R1 Fix the range-based for loop, Rev1 (Nicolai Josuttis, Victor Zverovich, Arthur O'Dwyer, Filipe Mulonde)

@wg21bot wg21bot removed the needs-revision Paper needs changes before it can proceed label Sep 20, 2021
@jfbastien
Copy link
Collaborator

Seen at today's EWG telecon:

POLL: send P2012r2 to EWG electronic polling for inclusion in C++23, not as a DR.

SF F N A SA
7 7 4 6 1

Result: no consensus.

@wg21bot
Copy link
Collaborator Author

wg21bot commented Oct 26, 2021

P2012R2 Fix the range-based for loop, Rev2 (Nicolai Josuttis, Victor Zverovich, Arthur O'Dwyer, Filipe Mulonde)

@jfbastien
Copy link
Collaborator

Subsumed by #1316

@jensmaurer jensmaurer modified the milestones: 2022-telecon, 2022-11 Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EWG Evolution
Projects
None yet
Development

No branches or pull requests

3 participants