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

Open
wg21bot opened this issue Nov 23, 2020 · 4 comments
Open

P2012 Fix the range-based for loop #939

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

Comments

@wg21bot
Copy link
Collaborator

@wg21bot 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 EWG 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 label Nov 23, 2020
@jensmaurer jensmaurer modified the milestones: 2020-telecon, 2021-telecon Dec 28, 2020
@jfbastien
Copy link
Collaborator

@jfbastien jfbastien commented Jan 28, 2021

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 label Jan 28, 2021
@wg21bot
Copy link
Collaborator Author

@wg21bot 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 label Sep 20, 2021
@jfbastien
Copy link
Collaborator

@jfbastien jfbastien commented Sep 29, 2021

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 wg21bot commented Oct 26, 2021

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

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

No branches or pull requests

3 participants