
25 Mar
2011
25 Mar
'11
2:49 p.m.
On 25 March 2011 13:57, Michael Goldshteyn <mgoldshteyn@comcast.net> wrote:
After reading the explanation of how hash_combine should be used, I am left wondering. Why is the recommendation for hash_combine different from what one would intuitively expect?
If you call hash_value directly you won't be taking advantage of the mechanism for finding the correct overload. Obviously, in this case that isn't a big deal but we'd rather encourage an implementation style that always works. There are also some portability workarounds that you'll be missing. Daniel