Boost logo

Boost-Commit :

From: pbristow_at_[hidden]
Date: 2007-09-17 06:08:11


Author: pbristow
Date: 2007-09-17 06:08:11 EDT (Mon, 17 Sep 2007)
New Revision: 39346
URL: http://svn.boost.org/trac/boost/changeset/39346

Log:
changed to use
if((boost::math::isinf)(x))
{
  if(x < 0) return 0;
  return 1;
}
 to get rid of 4127 warnings

but still need to supress 4127
Text files modified:
   sandbox/math_toolkit/libs/math/test/test_normal.cpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: sandbox/math_toolkit/libs/math/test/test_normal.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/test/test_normal.cpp (original)
+++ sandbox/math_toolkit/libs/math/test/test_normal.cpp 2007-09-17 06:08:11 EDT (Mon, 17 Sep 2007)
@@ -17,9 +17,10 @@
 
 #ifdef _MSC_VER
 #pragma warning (disable: 4127) // conditional expression is constant
+// caused by using if(std::numeric_limits<RealType>::has_infinity)
+// and if (std::numeric_limits<RealType>::has_quiet_NaN)
 #endif
 
-
 #include <boost/math/concepts/real_concept.hpp> // for real_concept
 #include <boost/test/included/test_exec_monitor.hpp> // Boost.Test
 #include <boost/test/floating_point_comparison.hpp>


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