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

Add "Otherwise" to the start of [dcl.init]/17.6 #2673

Closed
zygoloid opened this issue Feb 19, 2019 · 0 comments
Closed

Add "Otherwise" to the start of [dcl.init]/17.6 #2673

zygoloid opened this issue Feb 19, 2019 · 0 comments
Assignees

Comments

@zygoloid
Copy link
Member

[dcl.init]/17.4 governs initializers of the form (), but nothing prevents us also reaching /17.6 in that case, and if we do, we will invoke the default constructor for the class twice. The intent here is clear: /17.6 should start "Otherwise, if".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants