Optimize argument capture

This commit is contained in:
Victor Zverovich committed 2018-09-08 15:29:32 -07:00
1 parent a3ba6b4f62
commit 918bb1ce8f
2 files changed
+14 -14

No files matched your search

+1 -1
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);