Boost logo

Boost-Commit :

From: steven_at_[hidden]
Date: 2008-05-15 20:36:12


Author: steven_watanabe
Date: 2008-05-15 20:36:11 EDT (Thu, 15 May 2008)
New Revision: 45410
URL: http://svn.boost.org/trac/boost/changeset/45410

Log:
Made tests pass on cw 9.2
Text files modified:
   sandbox/units/libs/units/test/test_limits.cpp | 8 ++++++--
   1 files changed, 6 insertions(+), 2 deletions(-)

Modified: sandbox/units/libs/units/test/test_limits.cpp
==============================================================================
--- sandbox/units/libs/units/test/test_limits.cpp (original)
+++ sandbox/units/libs/units/test/test_limits.cpp 2008-05-15 20:36:11 EDT (Thu, 15 May 2008)
@@ -39,7 +39,9 @@
 struct check_quiet_NaN<true> {
     template<class T>
     static void apply() {
- BOOST_CHECK(isnan BOOST_PREVENT_MACRO_SUBSTITUTION ((std::numeric_limits<quantity<unit_type, T> >::quiet_NaN)()));
+ quantity<unit_type, T> q((std::numeric_limits<quantity<unit_type, T> >::quiet_NaN)());
+ bool test = isnan BOOST_PREVENT_MACRO_SUBSTITUTION (q);
+ BOOST_CHECK(test);
     }
 };
 
@@ -56,7 +58,9 @@
 struct check_signaling_NaN<true> {
     template<class T>
     static void apply() {
- BOOST_CHECK(isnan BOOST_PREVENT_MACRO_SUBSTITUTION ((std::numeric_limits<quantity<unit_type, T> >::signaling_NaN)()));
+ quantity<unit_type, T> q((std::numeric_limits<quantity<unit_type, T> >::signaling_NaN)());
+ bool test = isnan BOOST_PREVENT_MACRO_SUBSTITUTION (q);
+ BOOST_CHECK(test);
     }
 };
 


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