consistency fix for SafeMatcherCastImpl member functions

This commit is contained in:
Krystian Kuzniarek 2019-11-22 14:54:41 +01:00
parent f9665846e4
commit e0c80b0a6e

View File

@ -258,7 +258,7 @@ class SafeMatcherCastImpl {
// monomorphic matchers are handled by the next one. // monomorphic matchers are handled by the next one.
template <typename M> template <typename M>
static inline Matcher<T> Cast(const M& polymorphic_matcher_or_value) { static inline Matcher<T> Cast(const M& polymorphic_matcher_or_value) {
return internal::MatcherCastImpl<T, M>::Cast(polymorphic_matcher_or_value); return MatcherCast<T>(polymorphic_matcher_or_value);
} }
// This overload handles monomorphic matchers. // This overload handles monomorphic matchers.