Skip to content

Commit

Permalink
Fix usage with std::generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Arghnews committed Jul 7, 2024
1 parent 7a8b54a commit a12f910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/ranges.h
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ struct range_formatter<
auto out = ctx.out();
auto it = detail::range_begin(range);
auto end = detail::range_end(range);
if (is_debug) return write_debug_string(out, it, end);
if (is_debug) return write_debug_string(out, std::move(it), end);

out = detail::copy<Char>(opening_bracket_, out);
int i = 0;
Expand Down

0 comments on commit a12f910

Please sign in to comment.