Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50895 - trunk/boost/math/special_functions
From: john_at_[hidden]
Date: 2009-01-30 05:48:18


Author: johnmaddock
Date: 2009-01-30 05:48:17 EST (Fri, 30 Jan 2009)
New Revision: 50895
URL: http://svn.boost.org/trac/boost/changeset/50895

Log:
Fix min/max usage.
Text files modified:
   trunk/boost/math/special_functions/fpclassify.hpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/boost/math/special_functions/fpclassify.hpp
==============================================================================
--- trunk/boost/math/special_functions/fpclassify.hpp (original)
+++ trunk/boost/math/special_functions/fpclassify.hpp 2009-01-30 05:48:17 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