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
This commit is contained in:
Abseil Team 2019-12-30 16:28:03 -05:00 committed by Andy Soffer
parent 07ab939af7
commit 306f3754a7

View File

@ -3169,6 +3169,8 @@ class BoundSecondMatcher {
BoundSecondMatcher(const Tuple2Matcher& tm, const Second& second) BoundSecondMatcher(const Tuple2Matcher& tm, const Second& second)
: tuple2_matcher_(tm), second_value_(second) {} : tuple2_matcher_(tm), second_value_(second) {}
BoundSecondMatcher(const BoundSecondMatcher& other) = default;
template <typename T> template <typename T>
operator Matcher<T>() const { operator Matcher<T>() const {
return MakeMatcher(new Impl<T>(tuple2_matcher_, second_value_)); return MakeMatcher(new Impl<T>(tuple2_matcher_, second_value_));