[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:
|
Beta Was this translation helpful? Give feedback.
Answered by
JohelEGP
Sep 14, 2023
Replies: 3 comments 2 replies
-
No, see #542.
|
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
1 reply
-
I filed the bug here: #679 |
Beta Was this translation helpful? Give feedback.
0 replies
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
.