Boost logo

Boost :

Subject: Re: [boost] [functional] How to avoid a dependency on functional?
From: Daniel James (dnljms_at_[hidden])
Date: 2015-01-10 07:12:44

On 9 January 2015 at 22:27, Peter Dimov <lists_at_[hidden]> wrote:
> 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).

Then it'd probably be better to have forwarding headers for support of
each standard header, e.g. <boost/fwd/hash_string.hpp> if it's going
to be in a 'fwd' module.

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