#if defined(__GNUC__)
#endif
#if defined(_MSC_VER)
#endif
__gnu_cxx:hash_map
no match for call to `(const __gnu_cxx::hash<std::string>) (const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
错误解决方法
namespace __gnu_cxx {
template<> struct hash< std::string > {
size_t operator()(const std::string& key) const {
return hash< const char* >()(key.c_str());
}
};
}