Googletest export
Merge 3bdefdb473d304803d2a38e2a2cd5cdc1827c3bd into fb49e6c164
Closes #2407
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/googletest/pull/2407 from kuzkry:StaticAssertTypeEq 3bdefdb473d304803d2a38e2a2cd5cdc1827c3bd
PiperOrigin-RevId: 269255328
			
			
This commit is contained in:
		
				
					committed by
					
						
						Shaindel Schwartz
					
				
			
			
				
	
			
			
			
						parent
						
							cad3bc46c2
						
					
				
				
					commit
					f2fb48c3b3
				
			@@ -1069,10 +1069,9 @@ class NativeArray {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 private:
 | 
			
		||||
  enum {
 | 
			
		||||
    kCheckTypeIsNotConstOrAReference = StaticAssertTypeEqHelper<
 | 
			
		||||
        Element, GTEST_REMOVE_REFERENCE_AND_CONST_(Element)>::value
 | 
			
		||||
  };
 | 
			
		||||
  static_assert(!std::is_const<Element>::value, "Type must not be const");
 | 
			
		||||
  static_assert(!std::is_reference<Element>::value,
 | 
			
		||||
                "Type must not be a reference");
 | 
			
		||||
 | 
			
		||||
  // Initializes this object with a copy of the input.
 | 
			
		||||
  void InitCopy(const Element* array, size_t a_size) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user