我有一个C ++代码,它给了我以下错误:
Error 3 error C2338: The C++ Standard doesn't provide a hash for this type. c:\program files (x86)\microsoft visual studio 11.0\vc\include\xstddef 238 1 Kruskal
它没有引用我的代码中的特定行,所以我不知道要检查什么。我搜索了这个错误,发现它与string
中使用的unordered_map
有关。但是,虽然我在代码中使用了一些unordered_map
,但我没有strings
。
如果这有帮助,这些是我的地图:
unordered_map<int, pair<int,int>> map_idx_cell;
unordered_map<pair<int,int>,int> map_cell_idx;
有没有人知道这可能意味着什么?