Update of /cvsroot/boost/boost/boost/functional/detail
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30084

Modified Files:
        hash_float.hpp 
Log Message:
Only use the float.h macros on OpenBSD, it seems that on FreeBSD numeric_limits 
is actually a better option.

Index: hash_float.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/functional/detail/hash_float.hpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- hash_float.hpp      5 Oct 2006 21:21:43 -0000       1.17
+++ hash_float.hpp      5 Oct 2006 21:22:56 -0000       1.18
@@ -35,13 +35,10 @@
 #  endif
 #endif
 
-// On FreeBSD and OpenBSD, numeric_limits is not reliable for long doubles, but
-// the macros defined in <float.h> are. I don't know if this is also be the 
case for
-// other BSDs, but using the macros if they're available seems like the best
-// choice.
+// On OpenBSD, numeric_limits is not reliable for long doubles, but
+// the macros defined in <float.h> are.
 
-#if defined(__FreeBSD__) || defined(__NetBSD__) || \
-    defined(__OpenBSD__) || defined(__DragonFly__)
+#if defined(__OpenBSD__)
 #include <float.h>
 #endif
 
@@ -52,8 +49,7 @@
         template <class T>
         struct float_limits : std::numeric_limits<T> {};
 
-#if defined(__FreeBSD__) || defined(__NetBSD__) || \
-    defined(__OpenBSD__) || defined(__DragonFly__)
+#if defined(__OpenBSD__)
         template <>
         struct float_limits<long double>
              : std::numeric_limits<long double>
@@ -74,7 +70,7 @@
             BOOST_STATIC_CONSTANT(int, max_exponent = LDBL_MAX_EXP);
             BOOST_STATIC_CONSTANT(int, min_exponent = LDBL_MIN_EXP);
         };
-#endif // __FreeBSD__/__NetBSD__/__OpenBSD__/__DragonFly__
+#endif // __OpenBSD__
 
         inline void hash_float_combine(std::size_t& seed, std::size_t value)
         {


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to