Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void foo() {
- static std::map<std::string, std::string> fooMap =
- {
- { "First", "ABC" },
- { "Second", "DEF" }
- };
- }
- class Bar {
- public:
- Bar();
- private:
- std::map<std::string, std::string> barMap;
- };
- Bar::Bar() {
- barMap = { // <-- this is the error line
- { "First", "ABC" },
- { "Second", "DEF" }
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement