You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'd like to initialize a std::map (and other associative containers) with an initializer list or some other terse syntax similar to C++.
To Reproduce
I'm trying to translate the following C++ code into Cpp2:
Describe the bug
I'd like to initialize a
std::map
(and other associative containers) with an initializer list or some other terse syntax similar to C++.To Reproduce
I'm trying to translate the following C++ code into Cpp2:
from the std::map example on cppreference.
This attempt fails:
because it lowers to:
Both of the following succeed:
But they don't have the same terse syntax as the original C++.
See also:
#568 - [BUG] Multidimensional std::array initialization
The text was updated successfully, but these errors were encountered: