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

P2174 Compound Literals #883

Open
wg21bot opened this issue May 21, 2020 · 1 comment
Open

P2174 Compound Literals #883

wg21bot opened this issue May 21, 2020 · 1 comment

Comments

@wg21bot
Copy link
Collaborator

@wg21bot wg21bot commented May 21, 2020

P2174R0 Compound Literals (Zhihao Yuan)

@wg21bot wg21bot added the EWGI label May 21, 2020
@wg21bot wg21bot added this to the 2020-telecon milestone May 21, 2020
@jfbastien jfbastien added EWG and removed EWGI labels Sep 22, 2020
@jfbastien
Copy link
Collaborator

@jfbastien jfbastien commented Oct 8, 2020

Discussed in today's EWG telecon. One notable action item is to sync with the C committee people on this.

Polls:

Add compound literal to C++ (assuming my favored solution to the lifetime issues are addressed)

SF F N A SA
3 2 12 3 1

C++ compound literals should only work for trivial types (so that destructors aren't an issue)

SF F N S SA
1 8 7 0 4

C++ compound literals should match C++'s temporary object lifetime semantics

SF F N S SA
2 6 4 2 1

C++ compound literals should match C's block lifetime semantics

SF F N S SA
2 3 6 3 1

@jensmaurer jensmaurer removed this from the 2020-telecon milestone Dec 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants