diff --git a/include/fmt/format.h b/include/fmt/format.h index 67f0ab73..a84fc717 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -4237,8 +4237,7 @@ void vformat_to(buffer& buf, basic_string_view fmt, : parse_context(str), context(p_out, p_args, p_loc) {} void on_text(const Char* begin, const Char* end) { - auto text = basic_string_view(begin, to_unsigned(end - begin)); - context.advance_to(write(context.out(), text)); + context.advance_to(copy_noinline(begin, end, context.out())); } FMT_CONSTEXPR auto on_arg_id() -> int {