Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71390 - trunk/libs/math/example
From: pbristow_at_[hidden]
Date: 2011-04-20 04:55:52


Author: pbristow
Date: 2011-04-20 04:55:52 EDT (Wed, 20 Apr 2011)
New Revision: 71390
URL: http://svn.boost.org/trac/boost/changeset/71390

Log:
Added std:: to numeric_limits in #ifdef BOOST_NO_NUMERIC_LIMITS_LOWEST branch.
Text files modified:
   trunk/libs/math/example/nonfinite_facet_simple.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/math/example/nonfinite_facet_simple.cpp
==============================================================================
--- trunk/libs/math/example/nonfinite_facet_simple.cpp (original)
+++ trunk/libs/math/example/nonfinite_facet_simple.cpp 2011-04-20 04:55:52 EDT (Wed, 20 Apr 2011)
@@ -159,8 +159,8 @@
   // With the nonfinite_num_put and _get facets, the width of the output is constant.
 
   #ifdef BOOST_NO_NUMERIC_LIMITS_LOWEST
- std::streamsize max_digits10 = 2 + numeric_limits<double>::digits * 30103UL / 100000UL;
- cout << "BOOST_NO_NUMERIC_LIMITS_LOWEST is defined." << endl;
+ cout << "BOOST_NO_NUMERIC_LIMITS_LOWEST is defined, so no max_digits10 available." << endl;
+ std::streamsize max_digits10 = 2 + std::numeric_limits<double>::digits * 30103UL / 100000UL;
 #else
   // Can use new C++0X max_digits10 (the maximum potentially significant digits).
   std::streamsize max_digits10 = std::numeric_limits<double>::max_digits10;


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