fixed std::map.erase() c++ build error