|
Boost-Commit : |
From: john_at_[hidden]
Date: 2008-05-29 12:03:27
Author: johnmaddock
Date: 2008-05-29 12:03:26 EDT (Thu, 29 May 2008)
New Revision: 45913
URL: http://svn.boost.org/trac/boost/changeset/45913
Log:
Added missing #include.
Prevented macro substitution of fpclassify.
Text files modified:
trunk/boost/math/special_functions/next.hpp | 2 +-
trunk/libs/math/test/test_tr1.cpp | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/boost/math/special_functions/next.hpp
==============================================================================
--- trunk/boost/math/special_functions/next.hpp (original)
+++ trunk/boost/math/special_functions/next.hpp 2008-05-29 12:03:26 EDT (Thu, 29 May 2008)
@@ -202,7 +202,7 @@
// because we actually have fewer than tools::digits<T>()
// significant bits in the representation:
//
- frexp((boost::math::fpclassify(a) == FP_SUBNORMAL) ? tools::min_value<T>() : a, &expon);
+ frexp(((boost::math::fpclassify)(a) == FP_SUBNORMAL) ? tools::min_value<T>() : a, &expon);
T upper = ldexp(T(1), expon);
T result = 0;
expon = tools::digits<T>() - expon;
Modified: trunk/libs/math/test/test_tr1.cpp
==============================================================================
--- trunk/libs/math/test/test_tr1.cpp (original)
+++ trunk/libs/math/test/test_tr1.cpp 2008-05-29 12:03:26 EDT (Thu, 29 May 2008)
@@ -6,6 +6,7 @@
#include <boost/test/included/test_exec_monitor.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include <boost/math/tools/precision.hpp>
+#include <math.h> // ldexpf
#ifdef TEST_STD
#include <cmath>
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