Boost logo

Boost :

Subject: Re: [boost] [hash] Turn on BOOST_HASH_NO_IMPLICIT_CASTS by default
From: Peter Dimov (pdimov_at_[hidden])
Date: 2012-04-17 11:52:20


Stewart, Robert wrote:

> You could also use std::numeric_limits<T>::is_specialized to
> detect a possibly larger set of types to which overloads in the
> details namespace could be applied.

Some stdlib implementers have chosen to provide a primary std::hash template
that is SFINAEd on is_integral || is_enum. We could do the same for
hash_value.


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