mirror of
				https://github.com/fmtlib/fmt.git
				synced 2025-11-02 23:21:45 +01:00 
			
		
		
		
	Optimize argument capture
This commit is contained in:
		@@ -448,7 +448,7 @@ struct custom_context {
 | 
			
		||||
TEST(UtilTest, MakeValueWithCustomFormatter) {
 | 
			
		||||
  ::Test t;
 | 
			
		||||
  fmt::internal::value<custom_context> arg =
 | 
			
		||||
    fmt::internal::make_value<custom_context>(t);
 | 
			
		||||
      fmt::internal::make_value<custom_context>(t);
 | 
			
		||||
  custom_context ctx = {false};
 | 
			
		||||
  arg.custom.format(&t, ctx);
 | 
			
		||||
  EXPECT_TRUE(ctx.called);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user