Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81586 - in trunk/libs/math: example test
From: marshall_at_[hidden]
Date: 2012-11-27 09:19:46


Author: marshall
Date: 2012-11-27 09:19:45 EST (Tue, 27 Nov 2012)
New Revision: 81586
URL: http://svn.boost.org/trac/boost/changeset/81586

Log:
Removed missed usage of deprecated macros in Boost.Math
Text files modified:
   trunk/libs/math/example/geometric_examples.cpp | 4 ++--
   trunk/libs/math/example/inverse_chi_squared_example.cpp | 4 ++--
   trunk/libs/math/example/inverse_gamma_distribution_example.cpp | 4 ++--
   trunk/libs/math/example/inverse_gamma_example.cpp | 4 ++--
   trunk/libs/math/example/nonfinite_facet_simple.cpp | 4 ++--
   trunk/libs/math/example/nonfinite_num_facet.cpp | 6 +++---
   trunk/libs/math/example/nonfinite_num_facet_serialization.cpp | 6 +++---
   trunk/libs/math/test/common_factor_test.cpp | 4 ++--
   8 files changed, 18 insertions(+), 18 deletions(-)

Modified: trunk/libs/math/example/geometric_examples.cpp
==============================================================================
--- trunk/libs/math/example/geometric_examples.cpp (original)
+++ trunk/libs/math/example/geometric_examples.cpp 2012-11-27 09:19:45 EST (Tue, 27 Nov 2012)
@@ -157,9 +157,9 @@
     geometric g05(0.5); // Probability of success = 0.5 or 50%
     // Output all potentially significant digits for the type, here double.
 
-#ifdef BOOST_NO_NUMERIC_LIMITS_LOWEST
+#ifdef BOOST_NO_CXX11_NUMERIC_LIMITS
   int max_digits10 = 2 + (boost::math::policies::digits<double, boost::math::policies::policy<> >() * 30103UL) / 100000UL;
- cout << "BOOST_NO_NUMERIC_LIMITS_LOWEST is defined" << endl;
+ cout << "BOOST_NO_CXX11_NUMERIC_LIMITS is defined" << endl;
 #else
   int max_digits10 = std::numeric_limits<double>::max_digits10;
 #endif

Modified: trunk/libs/math/example/inverse_chi_squared_example.cpp
==============================================================================
--- trunk/libs/math/example/inverse_chi_squared_example.cpp (original)
+++ trunk/libs/math/example/inverse_chi_squared_example.cpp 2012-11-27 09:19:45 EST (Tue, 27 Nov 2012)
@@ -82,9 +82,9 @@
 
   // TODO find a more practical/useful example. Suggestions welcome?
 
-#ifdef BOOST_NO_NUMERIC_LIMITS_LOWEST
+#ifdef BOOST_NO_CXX11_NUMERIC_LIMITS
   int max_digits10 = 2 + (boost::math::policies::digits<double, boost::math::policies::policy<> >() * 30103UL) / 100000UL;
- cout << "BOOST_NO_NUMERIC_LIMITS_LOWEST is defined" << endl;
+ cout << "BOOST_NO_CXX11_NUMERIC_LIMITS is defined" << endl;
 #else
   int max_digits10 = std::numeric_limits<double>::max_digits10;
 #endif

Modified: trunk/libs/math/example/inverse_gamma_distribution_example.cpp
==============================================================================
--- trunk/libs/math/example/inverse_gamma_distribution_example.cpp (original)
+++ trunk/libs/math/example/inverse_gamma_distribution_example.cpp 2012-11-27 09:19:45 EST (Tue, 27 Nov 2012)
@@ -32,9 +32,9 @@
   cout << "Example using Inverse Gamma distribution. " << endl;
   // TODO - awaiting a real example using Bayesian statistics.
 
-#ifdef BOOST_NO_NUMERIC_LIMITS_LOWEST
+#ifdef BOOST_NO_CXX11_NUMERIC_LIMITS
   int max_digits10 = 2 + (boost::math::policies::digits<double, boost::math::policies::policy<> >() * 30103UL) / 100000UL;
- cout << "BOOST_NO_NUMERIC_LIMITS_LOWEST is defined" << endl;
+ cout << "BOOST_NO_CXX11_NUMERIC_LIMITS is defined" << endl;
 #else
   int max_digits10 = std::numeric_limits<double>::max_digits10;
 #endif

Modified: trunk/libs/math/example/inverse_gamma_example.cpp
==============================================================================
--- trunk/libs/math/example/inverse_gamma_example.cpp (original)
+++ trunk/libs/math/example/inverse_gamma_example.cpp 2012-11-27 09:19:45 EST (Tue, 27 Nov 2012)
@@ -28,9 +28,9 @@
 {
   cout << "Example 1 using Inverse Gamma function. " << endl;
 
- #ifdef BOOST_NO_NUMERIC_LIMITS_LOWEST
+ #ifdef BOOST_NO_CXX11_NUMERIC_LIMITS
   int max_digits10 = 2 + (boost::math::policies::digits<double, boost::math::policies::policy<> >() * 30103UL) / 100000UL;
- cout << "BOOST_NO_NUMERIC_LIMITS_LOWEST is defined" << endl;
+ cout << "BOOST_NO_CXX11_NUMERIC_LIMITS is defined" << endl;
 #else
   int max_digits10 = std::numeric_limits<double>::max_digits10;
 #endif

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 2012-11-27 09:19:45 EST (Tue, 27 Nov 2012)
@@ -191,8 +191,8 @@
   // Example varying the width and position of the nonfinite representations.
   // With the nonfinite_num_put and _get facets, the width of the output is constant.
 
- #ifdef BOOST_NO_NUMERIC_LIMITS_LOWEST
- cout << "BOOST_NO_NUMERIC_LIMITS_LOWEST is defined, so no max_digits10 available." << endl;
+ #ifdef BOOST_NO_CXX11_NUMERIC_LIMITS
+ cout << "BOOST_NO_CXX11_NUMERIC_LIMITS 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).

Modified: trunk/libs/math/example/nonfinite_num_facet.cpp
==============================================================================
--- trunk/libs/math/example/nonfinite_num_facet.cpp (original)
+++ trunk/libs/math/example/nonfinite_num_facet.cpp 2012-11-27 09:19:45 EST (Tue, 27 Nov 2012)
@@ -54,7 +54,7 @@
 // Use max_digits10 (or equivalent) to obtain
 // all potentially significant decimal digits for the floating-point types.
     
-#ifdef BOOST_NO_NUMERIC_LIMITS_LOWEST
+#ifdef BOOST_NO_CXX11_NUMERIC_LIMITS
   std::streamsize max_digits10_float = 2 + std::numeric_limits<float>::digits * 30103UL / 100000UL;
   std::streamsize max_digits10_double = 2 + std::numeric_limits<double>::digits * 30103UL / 100000UL;
 #else
@@ -186,8 +186,8 @@
     return 0;
   }
 
-#ifdef BOOST_NO_NUMERIC_LIMITS_LOWEST
- cout << "BOOST_NO_NUMERIC_LIMITS_LOWEST is defined, so no max_digits10 available either:"
+#ifdef BOOST_NO_CXX11_NUMERIC_LIMITS
+ cout << "BOOST_NO_CXX11_NUMERIC_LIMITS is defined, so no max_digits10 available either:"
      "\n we'll have to calculate our own version." << endl;
 #endif
   std::cout << "std::numeric_limits<float>::max_digits10 is " << max_digits10_float << endl;

Modified: trunk/libs/math/example/nonfinite_num_facet_serialization.cpp
==============================================================================
--- trunk/libs/math/example/nonfinite_num_facet_serialization.cpp (original)
+++ trunk/libs/math/example/nonfinite_num_facet_serialization.cpp 2012-11-27 09:19:45 EST (Tue, 27 Nov 2012)
@@ -44,7 +44,7 @@
 // Use max_digits10 (or equivalent) to obtain
 // all potentially significant decimal digits for the floating-point types.
     
-#ifdef BOOST_NO_NUMERIC_LIMITS_LOWEST
+#ifdef BOOST_NO_CXX11_NUMERIC_LIMITS
   std::streamsize max_digits10_float = 2 + std::numeric_limits<float>::digits * 30103UL / 100000UL;
   std::streamsize max_digits10_double = 2 + std::numeric_limits<double>::digits * 30103UL / 100000UL;
 #else
@@ -173,8 +173,8 @@
   std::clog << std::endl
       << "Nonfinite_serialization.cpp' example program." << std::endl;
 
-#ifdef BOOST_NO_NUMERIC_LIMITS_LOWEST
- std::cout << "BOOST_NO_NUMERIC_LIMITS_LOWEST is defined, so no max_digits10 available either,"
+#ifdef BOOST_NO_CXX11_NUMERIC_LIMITS
+ std::cout << "BOOST_NO_CXX11_NUMERIC_LIMITS is defined, so no max_digits10 available either,"
      "using our own version instead." << std::endl;
 #endif
   std::cout << "std::numeric_limits<float>::max_digits10 is " << max_digits10_float << std::endl;

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-11-27 09:19:45 EST (Tue, 27 Nov 2012)
@@ -148,7 +148,7 @@
 
     BOOST_STATIC_CONSTANT(int, digits = limits_type::digits);
     BOOST_STATIC_CONSTANT(int, digits10 = limits_type::digits10);
-#ifndef BOOST_NO_NUMERIC_LIMITS_LOWEST
+#ifndef BOOST_NO_CXX11_NUMERIC_LIMITS
     BOOST_STATIC_CONSTANT(int, max_digits10 = limits_type::max_digits10);
 #endif
     BOOST_STATIC_CONSTANT(bool, is_signed = limits_type::is_signed);
@@ -198,7 +198,7 @@
 
     BOOST_STATIC_CONSTANT(int, digits = limits_type::digits);
     BOOST_STATIC_CONSTANT(int, digits10 = limits_type::digits10);
-#ifndef BOOST_NO_NUMERIC_LIMITS_LOWEST
+#ifndef BOOST_NO_CXX11_NUMERIC_LIMITS
     BOOST_STATIC_CONSTANT(int, max_digits10 = limits_type::max_digits10);
 #endif
     BOOST_STATIC_CONSTANT(bool, is_signed = limits_type::is_signed);


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