请问.net 中的hash_map
我想使用一个
hash_map<string,int>
代码如下:
std::hash_map<std::string,int> myMap;
myMap["hello"] = 1;
but error:
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xhash(38) : error C2440: “类型转换” : 无法从“const std::string”转换为“size_t”
请问如何实现?