Fixes toString() for function pointers and added support for member function pointers.

- thanks to Malcolm Noyes for supplying sample code on which the solution here was based
This commit is contained in:
Phil Nash
2014-01-07 17:25:27 +00:00
parent 440a47011f
commit e091018514
7 changed files with 82 additions and 12 deletions

View File

@@ -6366,7 +6366,21 @@ TrickyTests.cpp:<line number>:
PASSED:
REQUIRE( a == &foo )
with expansion:
1 == 1
0x<hex digits> == 0x<hex digits>
-------------------------------------------------------------------------------
Comparing member function pointers
-------------------------------------------------------------------------------
TrickyTests.cpp:<line number>
...............................................................................
TrickyTests.cpp:<line number>:
PASSED:
CHECK( m == &S::f )
with expansion:
0x<hex digits>
==
0x<hex digits>
-------------------------------------------------------------------------------
pointer to class
@@ -7144,5 +7158,5 @@ with expansion:
true
===============================================================================
122 test cases - 51 failed (694 assertions - 110 failed)
123 test cases - 51 failed (695 assertions - 110 failed)