diff options
| author | Martin Hořeňovský | 2018-11-04 00:00:36 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2018-11-04 00:00:36 +0100 |
| commit | d0eb9dfb9b95b97d31656acd13bb9cfb445bc734 (patch) | |
| tree | 7c0641d716f11ef8873c4fa02c6088b7ed72fae7 /include | |
| parent | 03d122a35c3f5c398c43095a87bc82ed44642516 (diff) | |
| download | catch3-d0eb9dfb9b95b97d31656acd13bb9cfb445bc734.tar.gz | |
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*>.
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_matchers.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/internal/catch_matchers.h b/include/internal/catch_matchers.h index 29692fc0..aebd4c23 100644 --- a/include/internal/catch_matchers.h +++ b/include/internal/catch_matchers.h @@ -43,10 +43,6 @@ namespace Matchers { struct MatcherMethod { virtual bool match( ObjectT const& arg ) const = 0; }; - template<typename PtrT> - struct MatcherMethod<PtrT*> { - virtual bool match( PtrT* arg ) const = 0; - }; #ifdef __clang__ # pragma clang diagnostic pop |