Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85434 - trunk/libs/rational/test
From: dwalker07_at_[hidden]
Date: 2013-08-23 05:01:59


Author: dlwalker
Date: 2013-08-23 05:01:59 EDT (Fri, 23 Aug 2013)
New Revision: 85434
URL: http://svn.boost.org/trac/boost/changeset/85434

Log:
Changed "not" to "!" for MSVC compatibility.

Text files modified:
   trunk/libs/rational/test/rational_test.cpp | 5 ++++-
   1 files changed, 4 insertions(+), 1 deletions(-)

Modified: trunk/libs/rational/test/rational_test.cpp
==============================================================================
--- trunk/libs/rational/test/rational_test.cpp Thu Aug 22 20:46:15 2013 (r85433)
+++ trunk/libs/rational/test/rational_test.cpp 2013-08-23 05:01:59 EDT (Fri, 23 Aug 2013) (r85434)
@@ -19,6 +19,9 @@
 // since he hasn't been in contact for years.)
 
 // Revision History
+// 23 Aug 13 Add bug-test of narrowing conversions during order comparison;
+// spell logical-negation in it as "!" because MSVC won't accept
+// "not" (Daryle Walker)
 // 05 Nov 06 Add testing of zero-valued denominators & divisors; casting with
 // types that are not implicitly convertible (Daryle Walker)
 // 04 Nov 06 Resolve GCD issue with depreciation (Daryle Walker)
@@ -1009,7 +1012,7 @@
 
     bool const dummy = rational_type() < rational_type();
 
- BOOST_REQUIRE( not dummy );
+ BOOST_REQUIRE( !dummy );
 }
 
 BOOST_AUTO_TEST_SUITE_END()


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