Commit 306f3754 authored by Abseil Team's avatar Abseil Team Committed by Andy Soffer
Browse files

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
parent 07ab939a
...@@ -3169,6 +3169,8 @@ class BoundSecondMatcher { ...@@ -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_));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment