|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50894 - branches/release/boost/math/special_functions
From: john_at_[hidden]
Date: 2009-01-30 05:47:35
Author: johnmaddock
Date: 2009-01-30 05:47:33 EST (Fri, 30 Jan 2009)
New Revision: 50894
URL: http://svn.boost.org/trac/boost/changeset/50894
Log:
Fix min/max usage.
Text files modified:
branches/release/boost/math/special_functions/fpclassify.hpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Modified: branches/release/boost/math/special_functions/fpclassify.hpp
==============================================================================
--- branches/release/boost/math/special_functions/fpclassify.hpp (original)
+++ branches/release/boost/math/special_functions/fpclassify.hpp 2009-01-30 05:47:33 EST (Fri, 30 Jan 2009)
@@ -266,8 +266,8 @@
template<class T>
inline bool isfinite_impl(T x, generic_tag<true> const&)
{
- return x >= -std::numeric_limits<T>::max()
- && x <= std::numeric_limits<T>::max();
+ return x >= -(std::numeric_limits<T>::max)()
+ && x <= (std::numeric_limits<T>::max)();
}
template<class T>
@@ -326,8 +326,8 @@
inline bool isnormal_impl(T x, generic_tag<true> const&)
{
if(x < 0) x = -x;
- return x >= std::numeric_limits<T>::min()
- && x <= std::numeric_limits<T>::max();
+ return x >= (std::numeric_limits<T>::min)()
+ && x <= (std::numeric_limits<T>::max)();
}
template<class T>
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