Boost logo

Boost :

Subject: Re: [boost] [functional] How to avoid a dependency on functional?
From: Peter Dimov (lists_at_[hidden])
Date: 2015-01-09 17:27:03

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).

Boost list run by bdawes at, gregod at, cpdaniel at, john at