Skip to content

Commit

Permalink
Remove iterator shenanigans
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Dec 30, 2022
1 parent 3710c4d commit 739b600
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -4148,8 +4148,7 @@ void vformat_to(buffer<Char>& buf, basic_string_view<Char> fmt,
-> const Char* {
auto arg = get_arg(context, id);
if (arg.type() == type::custom_type) {
parse_context.advance_to(parse_context.begin() +
(begin - &*parse_context.begin()));
parse_context.advance_to(begin);
visit_format_arg(custom_formatter<Char>{parse_context, context}, arg);
return parse_context.begin();
}
Expand Down

0 comments on commit 739b600

Please sign in to comment.