Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. void foo() {
  2. static std::map<std::string, std::string> fooMap =
  3. {
  4. { "First", "ABC" },
  5. { "Second", "DEF" }
  6. };
  7. }
  8.  
  9. class Bar {
  10. public:
  11. Bar();
  12. private:
  13. std::map<std::string, std::string> barMap;
  14. };
  15.  
  16. Bar::Bar() {
  17. barMap = { // <-- this is the error line
  18. { "First", "ABC" },
  19. { "Second", "DEF" }
  20. };
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement