|
Boost-Commit : |
From: john_at_[hidden]
Date: 2007-11-07 05:09:50
Author: johnmaddock
Date: 2007-11-07 05:09:50 EST (Wed, 07 Nov 2007)
New Revision: 40879
URL: http://svn.boost.org/trac/boost/changeset/40879
Log:
Fix calls to fpclassify so they don't trigger macro expansion when fpclassify is a macro.
Text files modified:
trunk/boost/math/special_functions/gamma.hpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Modified: trunk/boost/math/special_functions/gamma.hpp
==============================================================================
--- trunk/boost/math/special_functions/gamma.hpp (original)
+++ trunk/boost/math/special_functions/gamma.hpp 2007-11-07 05:09:50 EST (Wed, 07 Nov 2007)
@@ -148,7 +148,7 @@
result = -boost::math::constants::pi<T>() / result;
if(result == 0)
return policies::raise_underflow_error<T>(function, "Result of tgamma is too small to represent.", pol);
- if(boost::math::fpclassify(result) == FP_SUBNORMAL)
+ if((boost::math::fpclassify)(result) == FP_SUBNORMAL)
return policies::raise_denorm_error<T>(function, "Result of tgamma is denormalized.", result, pol);
return result;
}
@@ -348,7 +348,7 @@
result = -boost::math::constants::pi<T>() / result;
if(result == 0)
return policies::raise_underflow_error<T>(function, "Result of tgamma is too small to represent.", pol);
- if(boost::math::fpclassify(result) == FP_SUBNORMAL)
+ if((boost::math::fpclassify)(result) == FP_SUBNORMAL)
return policies::raise_denorm_error<T>(function, "Result of tgamma is denormalized.", result, pol);
return result;
}
@@ -580,7 +580,7 @@
// This error handling isn't very good: it happens after the fact
// rather than before it...
//
- if(boost::math::fpclassify(prefix) == FP_INFINITE)
+ if((boost::math::fpclassify)(prefix) == FP_INFINITE)
policies::raise_overflow_error<T>("boost::math::detail::full_igamma_prefix<%1%>(%1%, %1%)", "Result of incomplete gamma function is too large to represent.", pol);
return prefix;
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