|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r49982 - sandbox/math_toolkit/libs/math/src/tr1
From: pbristow_at_[hidden]
Date: 2008-11-28 07:04:47
Author: pbristow
Date: 2008-11-28 07:04:46 EST (Fri, 28 Nov 2008)
New Revision: 49982
URL: http://svn.boost.org/trac/boost/changeset/49982
Log:
Warning 4800 suppressed by push'n'pop
Text files modified:
sandbox/math_toolkit/libs/math/src/tr1/fpclassify.cpp | 13 ++++++++++---
sandbox/math_toolkit/libs/math/src/tr1/fpclassifyf.cpp | 13 +++++++++++--
sandbox/math_toolkit/libs/math/src/tr1/fpclassifyl.cpp | 12 ++++++++++--
3 files changed, 31 insertions(+), 7 deletions(-)
Modified: sandbox/math_toolkit/libs/math/src/tr1/fpclassify.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/src/tr1/fpclassify.cpp (original)
+++ sandbox/math_toolkit/libs/math/src/tr1/fpclassify.cpp 2008-11-28 07:04:46 EST (Fri, 28 Nov 2008)
@@ -12,11 +12,16 @@
#include <boost/math/special_functions/sign.hpp>
#include "c_policy.hpp"
+#if defined (_MSC_VER)
+# pragma warning(push)
+# pragma warning (disable: 4800) // 'int' : forcing value to bool 'true' or 'false' (performance warning)
+#endif
+
namespace boost{ namespace math{ namespace tr1{
template<> bool BOOST_MATH_TR1_DECL signbit<double> BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
{
- return static_cast<bool>((boost::math::signbit)(x));
+ return static_cast<bool>((boost::math::signbit)(x));
}
template<> int BOOST_MATH_TR1_DECL fpclassify<double> BOOST_PREVENT_MACRO_SUBSTITUTION(double x)
@@ -44,6 +49,8 @@
return (boost::math::isnormal)(x);
}
-}}}
-
+}}} // namespace boost{ namespace math{ namespace tr1{
+#if defined (_MSC_VER)
+# pragma warning(pop)
+#endif
Modified: sandbox/math_toolkit/libs/math/src/tr1/fpclassifyf.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/src/tr1/fpclassifyf.cpp (original)
+++ sandbox/math_toolkit/libs/math/src/tr1/fpclassifyf.cpp 2008-11-28 07:04:46 EST (Fri, 28 Nov 2008)
@@ -12,11 +12,16 @@
#include <boost/math/special_functions/sign.hpp>
#include "c_policy.hpp"
+#if defined (_MSC_VER)
+# pragma warning(push)
+# pragma warning (disable: 4800) // 'int' : forcing value to bool 'true' or 'false' (performance warning)
+#endif
+
namespace boost{ namespace math{ namespace tr1{
template<> bool BOOST_MATH_TR1_DECL signbit<float> BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
{
- return static_cast<bool>((boost::math::signbit)(x));
+ return static_cast<bool>((boost::math::signbit)(x));
}
template<> int BOOST_MATH_TR1_DECL fpclassify<float> BOOST_PREVENT_MACRO_SUBSTITUTION(float x)
@@ -44,6 +49,10 @@
return (boost::math::isnormal)(x);
}
-}}}
+}}} // namespace boost{ namespace math{ namespace tr1{
+
+#if defined (_MSC_VER)
+# pragma warning(pop)
+#endif
Modified: sandbox/math_toolkit/libs/math/src/tr1/fpclassifyl.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/src/tr1/fpclassifyl.cpp (original)
+++ sandbox/math_toolkit/libs/math/src/tr1/fpclassifyl.cpp 2008-11-28 07:04:46 EST (Fri, 28 Nov 2008)
@@ -12,11 +12,16 @@
#include <boost/math/special_functions/sign.hpp>
#include "c_policy.hpp"
+#if defined (_MSC_VER)
+# pragma warning(push)
+# pragma warning (disable: 4800) // 'int' : forcing value to bool 'true' or 'false' (performance warning)
+#endif
+
namespace boost{ namespace math{ namespace tr1{
template<> bool BOOST_MATH_TR1_DECL signbit<long double> BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
{
- return static_cast<bool>((boost::math::signbit)(x));
+ return static_cast<bool>((boost::math::signbit)(x));
}
template<> int BOOST_MATH_TR1_DECL fpclassify<long double> BOOST_PREVENT_MACRO_SUBSTITUTION(long double x)
@@ -44,6 +49,9 @@
return (boost::math::isnormal)(x);
}
-}}}
+}}} // namespace boost{ namespace math{ namespace tr1{
+#if defined (_MSC_VER)
+# pragma warning(pop)
+#endif
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