Remove iterator shenanigans

This commit is contained in:
Victor Zverovich
2022-12-30 12:21:32 -08:00
parent 3710c4d38f
commit 739b600f40

View File

@ -4148,8 +4148,7 @@ void vformat_to(buffer<Char>& buf, basic_string_view<Char> fmt,
-> const Char* { -> const Char* {
auto arg = get_arg(context, id); auto arg = get_arg(context, id);
if (arg.type() == type::custom_type) { if (arg.type() == type::custom_type) {
parse_context.advance_to(parse_context.begin() + parse_context.advance_to(begin);
(begin - &*parse_context.begin()));
visit_format_arg(custom_formatter<Char>{parse_context, context}, arg); visit_format_arg(custom_formatter<Char>{parse_context, context}, arg);
return parse_context.begin(); return parse_context.begin();
} }