From 306f3754a71d6d1ac644681d3544d06744914228 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Mon, 30 Dec 2019 16:28:03 -0500 Subject: [PATCH] Googletest export Explicitly default copy constructor in BoundSecondMatcher Since C++11, implicit defaulting of copy constructors is deprecated for types with user-defined copy assignment operators, so we should explicitly default the copy constructor of BoundSecondMatcher. PiperOrigin-RevId: 287587847 --- googlemock/include/gmock/gmock-matchers.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/googlemock/include/gmock/gmock-matchers.h b/googlemock/include/gmock/gmock-matchers.h index 317d2c9f..67bd7e27 100644 --- a/googlemock/include/gmock/gmock-matchers.h +++ b/googlemock/include/gmock/gmock-matchers.h @@ -3169,6 +3169,8 @@ class BoundSecondMatcher { BoundSecondMatcher(const Tuple2Matcher& tm, const Second& second) : tuple2_matcher_(tm), second_value_(second) {} + BoundSecondMatcher(const BoundSecondMatcher& other) = default; + template operator Matcher() const { return MakeMatcher(new Impl(tuple2_matcher_, second_value_));