22 Aug
2012
22 Aug
'12
10:49 a.m.
Hi,
In Boost 1.51, it looks to me like boost::hash_value no longer knows how
to handle enums anymore. Is the following the right way to tell it to
treat enums like ints?
#if (BOOST_VERSION >= 105100) // Boost 1.51.0+
namespace boost {
/// Enable hashing of enums.
template<typename E> size_t hash_value(
E const e,
typename std::enable_if