Update of /cvsroot/boost/boost/boost/functional/detail
In directory
sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15251/boost/functional/detail
Modified Files:
hash_float.hpp
Log Message:
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.
Index: hash_float.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/functional/detail/hash_float.hpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- hash_float.hpp 25 Jun 2006 09:55:26 -0000 1.13
+++ hash_float.hpp 9 Jul 2006 22:50:43 -0000 1.14
@@ -59,7 +59,8 @@
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);
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs