I'm surprised this compiles unless you have a `using namespace std` or `using std::map` somewhere in one of the included header files, which is a bad idea.