Conditionally compile constexpr
This commit is contained in:
1 parent
5d8ba816de
commit
dc5403612e
5 files changed
+403
-422
No files matched your search
+2
-1
@@ -459,7 +459,8 @@ struct custom_context {
|
||||
|
||||
TEST(UtilTest, MakeValueWithCustomFormatter) {
|
||||
::Test t;
|
||||
fmt::internal::value<custom_context> arg(t);
|
||||
fmt::internal::value<custom_context> arg =
|
||||
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