Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80858 - trunk/libs/test/test
From: steven_at_[hidden]
Date: 2012-10-04 23:23:17


Author: steven_watanabe
Date: 2012-10-04 23:23:16 EDT (Thu, 04 Oct 2012)
New Revision: 80858
URL: http://svn.boost.org/trac/boost/changeset/80858

Log:
Fix test case for C++03.
Text files modified:
   trunk/libs/test/test/test_assertion_construction.cpp | 8 ++++++++
   1 files changed, 8 insertions(+), 0 deletions(-)

Modified: trunk/libs/test/test/test_assertion_construction.cpp
==============================================================================
--- trunk/libs/test/test/test_assertion_construction.cpp (original)
+++ trunk/libs/test/test/test_assertion_construction.cpp 2012-10-04 23:23:16 EDT (Thu, 04 Oct 2012)
@@ -253,7 +253,11 @@
         predicate_result const& res = E.evaluate();
         BOOST_CHECK( !res );
         BOOST_CHECK_EQUAL( res.message(), "(bool)Testee is false" );
+#ifndef BOOST_NO_RVALUE_REFERENCES
         BOOST_CHECK_EQUAL( Testee::s_copy_counter, 0 );
+#else
+ BOOST_CHECK_EQUAL( Testee::s_copy_counter, 1 );
+#endif
     }
 
     {
@@ -263,7 +267,11 @@
         predicate_result const& res = E.evaluate();
         BOOST_CHECK( !res );
         BOOST_CHECK_EQUAL( res.message(), "(bool)Testee is false" );
+#ifndef BOOST_NO_RVALUE_REFERENCES
         BOOST_CHECK_EQUAL( Testee::s_copy_counter, 0 );
+#else
+ BOOST_CHECK_EQUAL( Testee::s_copy_counter, 1 );
+#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