Merge branch 'master' into fix_death_test_child_mingw_wer_issue1116
This commit is contained in:
		
						commit
						a946f7db03
					
				@ -38,6 +38,11 @@ macro(fix_default_compiler_settings_)
 | 
			
		||||
      # We prefer more strict warning checking for building Google Test.
 | 
			
		||||
      # Replaces /W3 with /W4 in defaults.
 | 
			
		||||
      string(REPLACE "/W3" "/W4" ${flag_var} "${${flag_var}}")
 | 
			
		||||
 | 
			
		||||
      # Prevent D9025 warning for targets that have exception handling
 | 
			
		||||
      # turned off (/EHs-c- flag). Where required, exceptions are explicitly
 | 
			
		||||
      # re-enabled using the cxx_exception_flags variable.
 | 
			
		||||
      string(REPLACE "/EHsc" "" ${flag_var} "${${flag_var}}")
 | 
			
		||||
    endforeach()
 | 
			
		||||
  endif()
 | 
			
		||||
endmacro()
 | 
			
		||||
 | 
			
		||||
@ -978,12 +978,13 @@ struct TuplePolicy {
 | 
			
		||||
  static const size_t tuple_size = ::std::tr1::tuple_size<Tuple>::value;
 | 
			
		||||
 | 
			
		||||
  template <size_t I>
 | 
			
		||||
  struct tuple_element : ::std::tr1::tuple_element<I, Tuple> {};
 | 
			
		||||
  struct tuple_element : ::std::tr1::tuple_element<static_cast<int>(I), Tuple> {
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  template <size_t I>
 | 
			
		||||
  static typename AddReference<
 | 
			
		||||
      const typename ::std::tr1::tuple_element<I, Tuple>::type>::type get(
 | 
			
		||||
      const Tuple& tuple) {
 | 
			
		||||
  static typename AddReference<const typename ::std::tr1::tuple_element<
 | 
			
		||||
      static_cast<int>(I), Tuple>::type>::type
 | 
			
		||||
  get(const Tuple& tuple) {
 | 
			
		||||
    return ::std::tr1::get<I>(tuple);
 | 
			
		||||
  }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user