Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-04-16 13:34:59


Author: danieljames
Date: 2008-04-16 13:34:59 EDT (Wed, 16 Apr 2008)
New Revision: 44462
URL: http://svn.boost.org/trac/boost/changeset/44462

Log:
Write out the number of copies when the unnecessary copy test fails.

Text files modified:
   branches/unordered/trunk/libs/unordered/test/unordered/unnecessary_copy_tests.cpp | 5 +++++
   1 files changed, 5 insertions(+), 0 deletions(-)

Modified: branches/unordered/trunk/libs/unordered/test/unordered/unnecessary_copy_tests.cpp
==============================================================================
--- branches/unordered/trunk/libs/unordered/test/unordered/unnecessary_copy_tests.cpp (original)
+++ branches/unordered/trunk/libs/unordered/test/unordered/unnecessary_copy_tests.cpp 2008-04-16 13:34:59 EDT (Wed, 16 Apr 2008)
@@ -45,8 +45,13 @@
         T x;
         BOOST_DEDUCED_TYPENAME T::value_type a;
         BOOST_CHECK(count_copies::count == 1);
+ if(count_copies::count != 1)
+ std::cerr<<count_copies::count<<" copies.\n";
+
         x.insert(a);
         BOOST_CHECK(count_copies::count == 2);
+ if(count_copies::count != 1)
+ std::cerr<<count_copies::count<<" copies.\n";
     }
 
     boost::unordered_set<count_copies>* set;


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