diff options
author | Abseil Team <absl-team@google.com> | 2019-12-30 21:28:03 (GMT) |
---|---|---|
committer | Andy Soffer <asoffer@google.com> | 2020-01-02 21:49:38 (GMT) |
commit | 306f3754a71d6d1ac644681d3544d06744914228 (patch) | |
tree | 929bb1153a26ed2194043d8a4b7c13e136abad1e | |
parent | 07ab939af757a4dd2b4506653b025db42419fcd9 (diff) | |
download | googletest-306f3754a71d6d1ac644681d3544d06744914228.zip googletest-306f3754a71d6d1ac644681d3544d06744914228.tar.gz googletest-306f3754a71d6d1ac644681d3544d06744914228.tar.bz2 |
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
-rw-r--r-- | googlemock/include/gmock/gmock-matchers.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/googlemock/include/gmock/gmock-matchers.h b/googlemock/include/gmock/gmock-matchers.h index 317d2c9..67bd7e2 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 <typename T> operator Matcher<T>() const { return MakeMatcher(new Impl<T>(tuple2_matcher_, second_value_)); |