Update dynamic_formatter comment (#1923)

This commit is contained in:
Victor Zverovich 2020-10-07 12:15:07 -07:00
parent 3541880efd
commit b347b3023f

View File

@ -3412,8 +3412,10 @@ struct formatter<Char[N], Char> : formatter<basic_string_view<Char>, Char> {
// using variant = std::variant<int, std::string>;
// template <>
// struct formatter<variant>: 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 <typename Char = char> class dynamic_formatter {