From 9acd065a905a145eaa0a5ccbc43d7fbfd1079faf Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Sat, 12 Jan 2019 15:41:51 -0500 Subject: Googletest export Add move-only argument support to almost all remaining matchers. PiperOrigin-RevId: 229030728 --- googlemock/include/gmock/gmock-matchers.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'googlemock/include/gmock') diff --git a/googlemock/include/gmock/gmock-matchers.h b/googlemock/include/gmock/gmock-matchers.h index 56804f39..2cb70286 100644 --- a/googlemock/include/gmock/gmock-matchers.h +++ b/googlemock/include/gmock/gmock-matchers.h @@ -900,7 +900,7 @@ class PairMatchBase { public: template operator Matcher<::std::tuple>() const { - return MakeMatcher(new Impl<::std::tuple>); + return Matcher<::std::tuple>(new Impl&>); } template operator Matcher&>() const { @@ -2535,7 +2535,8 @@ class KeyMatcher { template operator Matcher() const { - return MakeMatcher(new KeyMatcherImpl(matcher_for_key_)); + return Matcher( + new KeyMatcherImpl(matcher_for_key_)); } private: @@ -2640,9 +2641,8 @@ class PairMatcher { template operator Matcher () const { - return MakeMatcher( - new PairMatcherImpl( - first_matcher_, second_matcher_)); + return Matcher( + new PairMatcherImpl(first_matcher_, second_matcher_)); } private: @@ -3205,7 +3205,7 @@ class OptionalMatcher { template operator Matcher() const { - return MakeMatcher(new Impl(value_matcher_)); + return Matcher(new Impl(value_matcher_)); } template -- cgit v1.2.3