Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2007-10-09 03:19:30


Author: danieljames
Date: 2007-10-09 03:19:30 EDT (Tue, 09 Oct 2007)
New Revision: 39833
URL: http://svn.boost.org/trac/boost/changeset/39833

Log:
Output some info about a test failure when hashing function pointers.
Text files modified:
   trunk/libs/functional/hash/test/hash_function_pointer_test.cpp | 8 ++++++++
   1 files changed, 8 insertions(+), 0 deletions(-)

Modified: trunk/libs/functional/hash/test/hash_function_pointer_test.cpp
==============================================================================
--- trunk/libs/functional/hash/test/hash_function_pointer_test.cpp (original)
+++ trunk/libs/functional/hash/test/hash_function_pointer_test.cpp 2007-10-09 03:19:30 EDT (Tue, 09 Oct 2007)
@@ -43,6 +43,14 @@
     BOOST_TEST(hasher_void(0) == hasher_void(0));
     BOOST_TEST(hasher_void(&void_func1) == hasher_void(&void_func1));
     BOOST_TEST(hasher_void(&void_func1) != hasher_void(&void_func2));
+ if(hasher_void(&void_func1) == hasher_void(&void_func2)) {
+ std::cerr<<std::hex;
+ std::cerr<<"&void_func1: "<<(void*)void_func1<<"\n";
+ std::cerr<<"&void_func2: "<<(void*)void_func2<<"\n";
+ std::cerr<<"hasher_void(&void_func1): "<<hasher_void(&void_func1)<<"\n";
+ std::cerr<<"hasher_void(&void_func2): "<<hasher_void(&void_func2)<<"\n";
+ std::cerr<<std::dec;
+ }
     BOOST_TEST(hasher_void(&void_func1) != hasher_void(0));
     BOOST_TEST(hasher_int(0) == hasher_int(0));
     BOOST_TEST(hasher_int(&int_func1) == hasher_int(&int_func1));


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