|
Boost-Commit : |
From: daniel_james_at_[hidden]
Date: 2007-10-07 14:08:35
Author: danieljames
Date: 2007-10-07 14:08:35 EDT (Sun, 07 Oct 2007)
New Revision: 39766
URL: http://svn.boost.org/trac/boost/changeset/39766
Log:
Include the size of function pointers, void* and std::size_t in the output of the function pointer hash test, to give me a clue why it's failling on a platform.
Text files modified:
trunk/libs/functional/hash/test/hash_function_pointer_test.cpp | 5 +++++
1 files changed, 5 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-07 14:08:35 EDT (Sun, 07 Oct 2007)
@@ -29,6 +29,11 @@
compile_time_tests((void(**)()) 0);
compile_time_tests((int(**)(int)) 0);
+ std::cout<<"sizeof(void(*)()) = "<<sizeof(void(*)())<<"\n";
+ std::cout<<"sizeof(int(*)(int)) = "<<sizeof(int(*)(int))<<"\n";
+ std::cout<<"sizeof(void*) = "<<sizeof(void*)<<"\n";
+ std::cout<<"sizeof(std::size_t) = "<<sizeof(std::size_t)<<"\n";
+
HASH_NAMESPACE::hash<void(*)()> hasher_void;
HASH_NAMESPACE::hash<int(*)(int)> hasher_int;
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