Skip to content

Instantly share code, notes, and snippets.

@hhirsch
Created February 21, 2014 17:42
Show Gist options
  • Save hhirsch/9139148 to your computer and use it in GitHub Desktop.
Save hhirsch/9139148 to your computer and use it in GitHub Desktop.
std::map<char, std::pair<int,int> > characterMap = {{'A', std::make_pair(1,1)}, {'B',std::make_pair(1,2)}};
/xxx/c++/glPortal/source/engine/gui/Character.hpp:23:107: error: could not convert ‘{{'A', std::make_pair<int, int>(1, 1)}, {'B', std::make_pair<int, int>(1, 2)}}’ from ‘<brace-enclosed initializer list>’ to ‘std::map<char, std::pair<int, int> >’
make[2]: *** [CMakeFiles/portal.dir/engine/gui/GameScreen.cpp.o] Fehler 1
make[1]: *** [CMakeFiles/portal.dir/all] Fehler 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment