mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-27 12:38:37 +00:00
Update dynamic_formatter comment (#1923)
This commit is contained in:
parent
3541880efd
commit
b347b3023f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user