I need some help with using the hash_map.
Here is my code of declaration of my hash_map:
Contact is a class defined by myselfCode:
hash_map<const string, Contact*> namehash;
Here is the usage of the hash_map:
v is a vector of Contact, Name() returns a std::stringCode:
namehash[v[c].Name()] = &v[c];
So what's wrong with this? Just can't compile it. I included the necessary headers already, and I'm using the SGI STL.
Thanks in advance.