diff --git a/boost/test/tools/impl.hpp b/boost/test/tools/impl.hpp index 97c4c1b..f6fa5ea 100755 --- a/boost/test/tools/impl.hpp +++ b/boost/test/tools/impl.hpp @@ -88,13 +88,12 @@ struct print_log_value { { if( std::numeric_limits::is_specialized && std::numeric_limits::radix == 2 ) ostr.precision( 2 + std::numeric_limits::digits * 301/1000 ); - /* - This needs a test for support of max_digits10 to avoid failures on platforms that do not support. +#if !defined(BOOST_NO_NUMERIC_LIMITS_LOWEST) if( std::numeric_limits::is_specialized && std::numeric_limits::radix == 10 ) ostr.precision( 2 + std::numeric_limits::max_digits10); // Assume that max_digits10 is provided for all radix 10 as they are quite new, // and anyway Kahan formula will not work for decimal. - */ +#endif } void set_precision( std::ostream&, mpl::true_ ) {}