From fecb6b5509270b998e7bceebeef22811c1062c11 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 11 Jul 2012 17:26:05 +0000 Subject: [PATCH] Fix numeric_limits specialization. [SVN r79419] --- test/common_factor_test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/common_factor_test.cpp b/test/common_factor_test.cpp index 8fd7288..db9032e 100644 --- a/test/common_factor_test.cpp +++ b/test/common_factor_test.cpp @@ -148,6 +148,9 @@ public: 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 @@ public: 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);