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

[dcl.init] Initialization of non-class types with direct initialization with multiple arguments #2373

Closed
Rakete1111 opened this issue Oct 27, 2018 · 3 comments

Comments

@Rakete1111
Copy link
Contributor

[dcl.init] doesn't seem to say what should happen if in direct initialization there are multiple arguments, i.e.:

int a(1, 2);

Direct initialization goes through [dcl.init]p17, which for direct initialization of an int goes to the last point, which says:

Otherwise, the initial value of the object being initialized is the (possibly converted) value of the initializer expression. [...]

What's the "initializer expression" for direct initialization? Missing is a limitation of the number of expressions in the expression-list and which expression is meant I guess.

@cpplearner
Copy link
Contributor

Already specified by [dcl.init]/14?

If the entity being initialized does not have class type, the expression-list in a parenthesized initializer shall be a single expression.

@Rakete1111
Copy link
Contributor Author

Hey, I missed that! Thanks :)

Would it still make sense to clarify "initializer expression" then?

@jensmaurer jensmaurer added decision-required A decision of the editorial group (or the Project Editor) is required. and removed decision-required A decision of the editorial group (or the Project Editor) is required. labels Oct 30, 2018
@jensmaurer
Copy link
Member

Editorial meeting: This is fine as-is. NAD.

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

3 participants