J
Jon Cosby
I need help in hashmaps. Why doesn't this work:
#include <hash_map>
hash_map <int, string> hm1;
typedef pair <int, string> pr;
hm1.insert(str_pair(1, "Hello"));
It compiles, but crashes at runtime, pointing to something in xhash.
#include <hash_map>
hash_map <int, string> hm1;
typedef pair <int, string> pr;
hm1.insert(str_pair(1, "Hello"));
It compiles, but crashes at runtime, pointing to something in xhash.