Optimize argument capture

This commit is contained in:
Victor Zverovich
2018-09-08 13:09:44 -07:00
parent a3ba6b4f62
commit 918bb1ce8f
2 changed files with 14 additions and 14 deletions

View File

@@ -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);