I have a C++ code, and it's giving me the following error:
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
It isn't referring me to a specific line in my code so I have no idea what to check. I googled this error and found that it has something to do with string
s used in an unordered_map
. However, while I do in fact use a few unordered_map
s in my code, I don't have any strings
.
Just in case this helps, these are my maps:
unordered_map<int, pair<int,int>> map_idx_cell;
unordered_map<pair<int,int>,int> map_cell_idx;
Does anyone have any idea what this could mean?