Optimize argument capture
This commit is contained in:
1 parent
a3ba6b4f62
commit
918bb1ce8f
2 files changed
+14
-14
No files matched your search
+1
-1
@@ -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