[Question] cpp2 support for brace initializer list for a container? #678
Answered
by
JohelEGP
guybrush77
asked this question in
Q&A
|
Does cpp2 support brace initializer list for a container? For example, something like: |
Answered by
JohelEGP
Sep 14, 2023
Replies: 3 comments 2 replies
|
No, see #542. |
1 reply
Answer selected by
guybrush77
|
Looks like I can't initialize in the constructor: I get this error using MSVC: If I remove the |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, see #542.
You need to explicitly specify the elements.
In this case, it'd be
std::pair.