From c7778306f84fc4ed30a948d8e378049b4ff7268c Mon Sep 17 00:00:00 2001 From: Daniel James Date: Wed, 11 Oct 2006 18:50:59 +0000 Subject: [PATCH] Use boost::hash_detail::float_limits in hash_number_test. This works around OpenBSD's inaccurate numeric_limits. [SVN r35558] --- hash/test/hash_number_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hash/test/hash_number_test.cpp b/hash/test/hash_number_test.cpp index 2008313..d708cd9 100644 --- a/hash/test/hash_number_test.cpp +++ b/hash/test/hash_number_test.cpp @@ -24,7 +24,7 @@ template void numeric_test(T*) { - typedef std::numeric_limits limits; + typedef boost::hash_detail::float_limits limits; compile_time_tests((T*) 0); @@ -60,7 +60,7 @@ void numeric_test(T*) template void limits_test(T*) { - typedef std::numeric_limits limits; + typedef boost::hash_detail::float_limits limits; if(limits::is_specialized) { @@ -91,7 +91,7 @@ void limits_test(T*) template void poor_quality_tests(T*) { - typedef std::numeric_limits limits; + typedef boost::hash_detail::float_limits limits; HASH_NAMESPACE::hash x1; HASH_NAMESPACE::hash x2;