Language
C++
Compiler
gcc HEAD 12.0.0 20210721 (experimental)
Options
Boost 1.72.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -I/opt/wandbox/boost-1.72.0/gcc-head/include -std=gnu++2a
Exit Code:
1
Author
anonymous
over 3 years ago
C++
gcc HEAD 12.0.0 20210721 (experimental)
Author
anonymous
over 3 years ago
$ g++ prog.cc -I/opt/wandbox/boost-1.72.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'Wrapper<std::map<char, int> > get_map()':
prog.cc:25:49: error: could not convert '{{'a', 1}, {'b', 2}, {'c', 3}}' from '<brace-enclosed initializer list>' to 'Wrapper<std::map<char, int> >'
25 | return { { 'a', 1 }, { 'b', 2 }, { 'c', 3 } };
| ^
| |
| <brace-enclosed initializer list>