voidecho / sparsehash

Automatically exported from code.google.com/p/sparsehash
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

documentation: dense_hash_map example uses std::tr1::hash<const char*> #89

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Problem with std::tr1::hash<const char*> that it casts pointer to size_t type 
instead of hashing the string. Even example may work as it is, any attempts to 
extend example to real application will fail.

Original issue reported on code.google.com by aodin...@gmail.com on 6 Nov 2012 at 8:49