From 638362121aecf9b10cd8a88f249511ee43bb17a3 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Fri, 23 May 2014 12:17:28 +0100 Subject: [PATCH] Doc update. --- doc/html/boost_multiprecision/map/hist.html | 18 +++++++++---- .../tut/limits/functions.html | 26 +++++-------------- doc/html/index.html | 2 +- doc/multiprecision.qbk | 4 +++ 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/doc/html/boost_multiprecision/map/hist.html b/doc/html/boost_multiprecision/map/hist.html index 48255fa9..aebfe5a8 100644 --- a/doc/html/boost_multiprecision/map/hist.html +++ b/doc/html/boost_multiprecision/map/hist.html @@ -28,6 +28,14 @@
+ Multiprecision-2.2.1 + (Boost-1.56) +
+
+
+ Multiprecision-2.2.0
- + Boost-1.55
- + 1.54
- + 1.53
- + Post review changes
@@ -218,7 +226,7 @@
- + Pre-review history
diff --git a/doc/html/boost_multiprecision/tut/limits/functions.html b/doc/html/boost_multiprecision/tut/limits/functions.html index 4dfa5dbf..7e8cbc7c 100644 --- a/doc/html/boost_multiprecision/tut/limits/functions.html +++ b/doc/html/boost_multiprecision/tut/limits/functions.html @@ -319,15 +319,8 @@
T expected = 1.0;
 T calculated = 1.0 + std::numeric_limits<T>::epsilon();
 
-using boost::test_tools::check_is_close;
-
-bool r = check_is_close(expected, calculated, tolerance);
-std::cout <<  std::boolalpha << r << std::endl;  // true
+BOOST_CHECK_CLOSE_FRACTION(expected, calculated, tolerance);
 
-

- If using Boost.Test, then call the macro version: -

-
BOOST_CHECK_CLOSE_FRACTION(expected, calculated, tolerance);

used thus:

@@ -357,10 +350,8 @@
cpp_dec_float_50 tolerance =  3 * std::numeric_limits<cpp_dec_float_50>::epsilon();
 cpp_dec_float_50 expected = boost::math::constants::two_pi<cpp_dec_float_50>();
 cpp_dec_float_50 calculated = 2 * boost::math::constants::pi<cpp_dec_float_50>();
-using boost::test_tools::check_is_close;
 
-bool r = check_is_close(expected, calculated, tolerance);
-std::cout <<  std::boolalpha << r << std::endl;  // true
+BOOST_CHECK_CLOSE_FRACTION(expected, calculated, tolerance);
 
@@ -441,13 +432,11 @@ cpp_bin_float_quad expected = NaN; cpp_bin_float_quad calculated = 2 * NaN; - using boost::test_tools::check_is_close; - - bool r = check_is_close(expected, expected, tolerance); - std::cout << std::boolalpha << r << std::endl; // false, as expected because all comparisons with NaNs are false. - - r = check_is_close(expected, calculated, tolerance); - std::cout << std::boolalpha << r << std::endl; // false, as expected because all comparisons with NaNs are false. + // Comparisons of NaN's always fail: + bool b = expected == calculated; + std::cout << b << std::endl; + BOOST_CHECK_NE(expected, expected); + BOOST_CHECK_NE(expected, calculated); } else { @@ -507,7 +496,6 @@ assert(ss.str() == "nan"); std::cout << "NaN output was " << ss.str() << std::endl; ss >> n; // Read back in. - assert(NaN == n); // Confirms that the floating-point values really are identical. std::cout << "NaN input was " << n << std::endl; } diff --git a/doc/html/index.html b/doc/html/index.html index 1207d104..1e4f62a1 100644 --- a/doc/html/index.html +++ b/doc/html/index.html @@ -157,7 +157,7 @@ - +

Last revised: April 13, 2014 at 10:27:32 GMT

Last revised: May 23, 2014 at 11:16:27 GMT


diff --git a/doc/multiprecision.qbk b/doc/multiprecision.qbk index 41f7b1f1..8b3da640 100644 --- a/doc/multiprecision.qbk +++ b/doc/multiprecision.qbk @@ -4919,6 +4919,10 @@ Windows Vista machine. [section:hist History] +[h4 Multiprecision-2.2.1 (Boost-1.56)] + +* Fix bug in assignment from string in cpp_int, see [@https://svn.boost.org/trac/boost/ticket/9936 9936]. + [h4 Multiprecision-2.2.0] * Moved to Boost.Multiprecision specific version number - we have one breaking change in Boost-1.54