mirror of
https://github.com/google/googletest.git
synced 2024-12-27 10:11:03 +08:00
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:
parent
07ab939af7
commit
306f3754a7
@ -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_));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user