|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r51579 - trunk/libs/math/example
From: john_at_[hidden]
Date: 2009-03-03 13:19:01
Author: johnmaddock
Date: 2009-03-03 13:19:01 EST (Tue, 03 Mar 2009)
New Revision: 51579
URL: http://svn.boost.org/trac/boost/changeset/51579
Log:
Fix for no long double support.
Text files modified:
trunk/libs/math/example/error_policies_example.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
Modified: trunk/libs/math/example/error_policies_example.cpp
==============================================================================
--- trunk/libs/math/example/error_policies_example.cpp (original)
+++ trunk/libs/math/example/error_policies_example.cpp 2009-03-03 13:19:01 EST (Tue, 03 Mar 2009)
@@ -73,12 +73,14 @@
cout << "quantile(my_students_t(), 0.); = " << quantile(my_students_t(-1), 0.F) << endl; // 'bad' argument negative, so expect NaN.
+#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
// Construct a (0, 1) normal distribution that ignores all errors,
// returning NaN, infinity, zero, or best guess,
// and NOT setting errno.
normal_distribution<long double, my_ignoreall_policy> my_normal2(0.L, 1.L); // explicit parameters for distribution.
cout << "quantile(my_normal2(), 0.); = " << quantile(my_normal2, 0.01) << endl; // argument 0.01, so result finite.
cout << "quantile(my_normal2(), 0.); = " << quantile(my_normal2, 0.) << endl; // argument zero, so expect infinity.
+#endif
return 0;
}
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