From d9063baf227882da0f48c761abcbb08247eb1296 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 15 Oct 2023 08:23:36 -0700 Subject: [PATCH] Fix perf regression in ostream::print --- include/fmt/os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/os.h b/include/fmt/os.h index 2126424d..f3e81cfc 100644 --- a/include/fmt/os.h +++ b/include/fmt/os.h @@ -419,7 +419,7 @@ class FMT_API ostream { output to the file. */ template void print(format_string fmt, T&&... args) { - vformat_to(detail::buffer_appender(buffer_), fmt, + vformat_to(std::back_inserter(buffer_), fmt, fmt::make_format_args(args...)); } };