Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50364 - branches/release/boost
From: john_at_[hidden]
Date: 2008-12-22 06:57:26


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

Log:
Merge trivial fixes from Trunk.
Text files modified:
   branches/release/boost/rational.hpp | 13 ++++++++++++-
   1 files changed, 12 insertions(+), 1 deletions(-)

Modified: branches/release/boost/rational.hpp
==============================================================================
--- branches/release/boost/rational.hpp (original)
+++ branches/release/boost/rational.hpp 2008-12-22 06:57:25 EST (Mon, 22 Dec 2008)
@@ -5,6 +5,10 @@
 // in all copies. This software is provided "as is" without express or
 // implied warranty, and with no claim as to its suitability for any purpose.
 
+// boostinspect:nolicense (don't complain about the lack of a Boost license)
+// (Paul Moore hasn't been in contact for years, so there's no way to change the
+// license.)
+
 // See http://www.boost.org/libs/rational for documentation.
 
 // Credits:
@@ -51,7 +55,7 @@
 #define BOOST_RATIONAL_HPP
 
 #include <iostream> // for std::istream and std::ostream
-#include <iomanip> // for std::noskipws
+#include <ios> // for std::noskipws
 #include <stdexcept> // for std::domain_error
 #include <string> // for std::string implicit constructor
 #include <boost/operators.hpp> // for boost::addable etc
@@ -437,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