]> git.lyx.org Git - lyx.git/blobdiff - boost/boost/limits.hpp
attempt to make LyX linkable without NLS, assuming dummy available() should return...
[lyx.git] / boost / boost / limits.hpp
index f468dbce73970d90f2dbb6caad297a5e98a8d319..d3747a1ad135cc6d5d0b69448851ae9ddc97835e 100644 (file)
@@ -6,7 +6,7 @@
 //
 // use this header as a workaround for missing <limits>
 
-//  See http://www.boost.org/libs/utility/limits.html for documentation.
+//  See http://www.boost.org/libs/compatibility/index.html for documentation.
 
 #ifndef BOOST_LIMITS
 #define BOOST_LIMITS
@@ -30,6 +30,8 @@
 #  define BOOST_ULLT  ::boost::ulong_long_type
 #endif
 
+#include <climits>  // for CHAR_BIT
+
 namespace std
 {
   template<>
@@ -76,8 +78,8 @@ namespace std
       static BOOST_LLT denorm_min() throw() { return 0; };
 
       BOOST_STATIC_CONSTANT(bool, is_iec559 = false);
-      BOOST_STATIC_CONSTANT(bool, is_bounded = false);
-      BOOST_STATIC_CONSTANT(bool, is_modulo = false);
+      BOOST_STATIC_CONSTANT(bool, is_bounded = true);
+      BOOST_STATIC_CONSTANT(bool, is_modulo = true);
 
       BOOST_STATIC_CONSTANT(bool, traps = false);
       BOOST_STATIC_CONSTANT(bool, tinyness_before = false);
@@ -129,8 +131,8 @@ namespace std
       static BOOST_ULLT denorm_min() throw() { return 0; };
 
       BOOST_STATIC_CONSTANT(bool, is_iec559 = false);
-      BOOST_STATIC_CONSTANT(bool, is_bounded = false);
-      BOOST_STATIC_CONSTANT(bool, is_modulo = false);
+      BOOST_STATIC_CONSTANT(bool, is_bounded = true);
+      BOOST_STATIC_CONSTANT(bool, is_modulo = true);
 
       BOOST_STATIC_CONSTANT(bool, traps = false);
       BOOST_STATIC_CONSTANT(bool, tinyness_before = false);
@@ -141,3 +143,4 @@ namespace std
 #endif 
 
 #endif
+