9 Jan
2015
9 Jan
'15
10:27 p.m.
Daniel James wrote:
My preference is to use something like: 'boost::hash<T> hasher; return hasher(x.native())'.
That's what I do in shared_ptr, but in path's case, I don't believe that it can be done. hash_value( path ) does not depend on a template parameter, so the definition of hash<string> must be visible (on compilers that implement two-phase lookup properly).