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:
		@@ -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_));
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user