Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50363 - trunk/boost
From: john_at_[hidden]
Date: 2008-12-22 04:57:35


Author: johnmaddock
Date: 2008-12-22 04:57:35 EST (Mon, 22 Dec 2008)
New Revision: 50363
URL: http://svn.boost.org/trac/boost/changeset/50363

Log:
MSVC warning suppression.
Fixes #2606.
Text files modified:
   trunk/boost/rational.hpp | 7 +++++++
   1 files changed, 7 insertions(+), 0 deletions(-)

Modified: trunk/boost/rational.hpp
==============================================================================
--- trunk/boost/rational.hpp (original)
+++ trunk/boost/rational.hpp 2008-12-22 04:57:35 EST (Mon, 22 Dec 2008)
@@ -441,11 +441,18 @@
     }
     else
     {
+#ifdef BOOST_MSVC
+#pragma warning(push)
+#pragma warning(disable:4800)
+#endif
         // Exactly one of the remainders is zero, so all following c.f.
         // components of that variable are infinity, while the other variable
         // has a finite next c.f. component. So that other variable has the
         // lesser value (modulo the reversal flag!).
         return ( ts.r != zero ) != static_cast<bool>( reverse );
+#ifdef BOOST_MSVC
+#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