Boost logo

Boost :

Subject: Re: [boost] [functional] How to avoid a dependency on functional?
From: Daniel James (dnljms_at_[hidden])
Date: 2015-01-09 15:45:47


On 9 January 2015 at 20:30, Peter Dimov <lists_at_[hidden]> wrote:
>
> There is also the option of just returning hash_value( x.native() ). This
> would require a forward declaration of hash_value for string.

I wanted hash_fwd.hpp to depend on minimal standard headers. My
preference is to use something like: 'boost::hash<T> hasher; return
hasher(x.native())'. Could possibly add a convenience function, maybe
'call_hash'.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk