Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 3 years ago

Language

C++

Compiler

gcc HEAD 12.0.0 20210721 (experimental)

Options
Boost 1.72.0
C++2a(GNU)
no pedantic

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>
Exit Code:
1