From b347b3023f386dc63f2a23a82fd1f7491a133952 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 7 Oct 2020 12:15:07 -0700 Subject: [PATCH] Update dynamic_formatter comment (#1923) --- include/fmt/format.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 76cea59e..b949b5ca 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3412,8 +3412,10 @@ struct formatter : formatter, Char> { // using variant = std::variant; // template <> // struct formatter: dynamic_formatter<> { -// void format(buffer &buf, const variant &v, context &ctx) { -// visit([&](const auto &val) { format(buf, val, ctx); }, v); +// auto format(const variant& v, format_context& ctx) { +// return visit([&](const auto& val) { +// return dynamic_formatter<>::format(val, ctx); +// }, v); // } // }; template class dynamic_formatter {