diff --git a/include/fmt/format.h b/include/fmt/format.h index 7c2a19b4084d..cb88180b1aa3 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3629,9 +3629,7 @@ auto write(OutputIt out, monostate, format_specs = {}, locale_ref = {}) template FMT_CONSTEXPR auto write(OutputIt out, basic_string_view value) -> OutputIt { - auto it = reserve(out, value.size()); - it = copy_noinline(value.begin(), value.end(), it); - return base_iterator(out, it); + return copy_noinline(value.begin(), value.end(), out); } template