forked from boostorg/container_hash
Comment out an assert which is giving bogus failures. On platforms where it isn't possible to detect NaN or infinity the full hash computation is performed on them. For NaN the result doesn't matter (since NaN != NaN), for infinity it should always give the same result), so the calculation works but unfortuanately, I don't know how to correctly check that v is what I expect in the assertion.
I could use a different hash function when I don't have fpclassify/fpclass but that shouldn't be necessary. [SVN r34490]
This commit is contained in:
@@ -59,7 +59,8 @@ namespace boost
|
||||
exp = ~exp;
|
||||
}
|
||||
|
||||
BOOST_ASSERT(0 <= v && v < 0.5);
|
||||
// TODO: Of course, this doesn't pass when hashing infinity or NaN.
|
||||
//BOOST_ASSERT(0 <= v && v < 0.5);
|
||||
|
||||
v = boost::hash_detail::call_ldexp(v,
|
||||
std::numeric_limits<std::size_t>::digits + 1);
|
||||
|
Reference in New Issue
Block a user