Skip to content

[Question] cpp2 support for brace initializer list for a container? #678

Answered by JohelEGP
guybrush77 asked this question in Q&A
Discussion options

You must be logged in to vote

No, see #542.
You need to explicitly specify the elements.
In this case, it'd be std::pair.

    m = ( std::pair(1, 2), std::pair(3, 4) );

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@guybrush77
Comment options

Answer selected by guybrush77
Comment options

You must be logged in to vote
1 reply
@JohelEGP
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants