Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79419 - trunk/libs/math/test
From: john_at_[hidden]
Date: 2012-07-11 13:26:05


Author: johnmaddock
Date: 2012-07-11 13:26:05 EDT (Wed, 11 Jul 2012)
New Revision: 79419
URL: http://svn.boost.org/trac/boost/changeset/79419

Log:
Fix numeric_limits specialization.
Text files modified:
   trunk/libs/math/test/common_factor_test.cpp | 6 ++++++
   1 files changed, 6 insertions(+), 0 deletions(-)

Modified: trunk/libs/math/test/common_factor_test.cpp
==============================================================================
--- trunk/libs/math/test/common_factor_test.cpp (original)
+++ trunk/libs/math/test/common_factor_test.cpp 2012-07-11 13:26:05 EDT (Wed, 11 Jul 2012)
@@ -148,6 +148,9 @@
 
     BOOST_STATIC_CONSTANT(int, digits = limits_type::digits);
     BOOST_STATIC_CONSTANT(int, digits10 = limits_type::digits10);
+#ifndef BOOST_NO_NUMERIC_LIMITS_LOWEST
+ BOOST_STATIC_CONSTANT(int, max_digits10 = limits_type::max_digits10);
+#endif
     BOOST_STATIC_CONSTANT(bool, is_signed = limits_type::is_signed);
     BOOST_STATIC_CONSTANT(bool, is_integer = limits_type::is_integer);
     BOOST_STATIC_CONSTANT(bool, is_exact = limits_type::is_exact);
@@ -195,6 +198,9 @@
 
     BOOST_STATIC_CONSTANT(int, digits = limits_type::digits);
     BOOST_STATIC_CONSTANT(int, digits10 = limits_type::digits10);
+#ifndef BOOST_NO_NUMERIC_LIMITS_LOWEST
+ BOOST_STATIC_CONSTANT(int, max_digits10 = limits_type::max_digits10);
+#endif
     BOOST_STATIC_CONSTANT(bool, is_signed = limits_type::is_signed);
     BOOST_STATIC_CONSTANT(bool, is_integer = limits_type::is_integer);
     BOOST_STATIC_CONSTANT(bool, is_exact = limits_type::is_exact);


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk