Remove unused partial specialization for MatcherMethod<T>

No matcher actually uses it, and there is no good reason for it,
as the best it can do for user is removing a single indirection
when using the pointer inside the matcher. Given the overhead of
other code that will be running during such time, it is completely
meaningless.

This also fixes compilation for PredicateMatcher<const char*>.
This commit is contained in:
Martin Hořeňovský
2018-11-04 00:00:36 +01:00
parent 03d122a35c
commit d0eb9dfb9b
7 changed files with 36 additions and 11 deletions

View File

@@ -5739,6 +5739,18 @@ PASSED:
with expansion:
0 != 0x<hex digits>
-------------------------------------------------------------------------------
Predicate matcher can accept const char*
-------------------------------------------------------------------------------
Matchers.tests.cpp:<line number>
...............................................................................
Matchers.tests.cpp:<line number>:
PASSED:
REQUIRE_THAT( "foo", Predicate<const char*>([] (const char* const&) { return true; }) )
with expansion:
"foo" matches undescribed predicate
-------------------------------------------------------------------------------
Process can be configured on command line
empty args don't cause a crash
@@ -10885,6 +10897,6 @@ Misc.tests.cpp:<line number>:
PASSED:
===============================================================================
test cases: 215 | 149 passed | 62 failed | 4 failed as expected
assertions: 1247 | 1104 passed | 122 failed | 21 failed as expected
test cases: 216 | 150 passed | 62 failed | 4 failed as expected
assertions: 1248 | 1105 passed | 122 failed | 21 failed as expected