- Jun 16, 2000
- 30,213
- 11
- 81
Anyone here used the std::hash object in C++? I realize it isn't official STL yet, but it's common enough - its found its way into GCC at any rate.
Anyway, I'm trying to convert strings into unique INTs for identification purposes, and I figured a hash would do the job well enough. However, identical strings going into the hash function are producing inconsistent results, any idea why?
The code is very simple...
Anyway, I'm trying to convert strings into unique INTs for identification purposes, and I figured a hash would do the job well enough. However, identical strings going into the hash function are producing inconsistent results, any idea why?
The code is very simple...