mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-02 23:21:45 +01:00
Replace ArgVisitor::visit with a free visit function
This commit is contained in:
@@ -69,7 +69,7 @@ TEST(OStreamTest, CustomArg) {
|
||||
fmt::format_context ctx("}", fmt::format_args());
|
||||
fmt::FormatSpec spec;
|
||||
TestArgFormatter af(writer, ctx, spec);
|
||||
af.visit(fmt::internal::MakeArg<fmt::format_context>(TestEnum()));
|
||||
visit(af, fmt::internal::MakeArg<fmt::format_context>(TestEnum()));
|
||||
EXPECT_EQ("TestEnum", writer.str());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user