mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-28 13:19:48 +01:00
Optimize common case
This commit is contained in:
@@ -1766,8 +1766,7 @@ template <typename OutputIt, typename Char> struct default_arg_formatter {
|
||||
}
|
||||
|
||||
OutputIt operator()(typename basic_format_arg<context>::handle handle) {
|
||||
auto s = Char('}');
|
||||
basic_format_parse_context<Char> parse_ctx(basic_string_view<Char>(&s, 1));
|
||||
basic_format_parse_context<Char> parse_ctx({});
|
||||
basic_format_context<OutputIt, Char> format_ctx(out, args, loc);
|
||||
handle.format(parse_ctx, format_ctx);
|
||||
return format_ctx.out();
|
||||
|
||||
Reference in New Issue
Block a user