diff options
author | Victor Zverovich <viz@meta.com> | 2023-10-15 08:23:36 -0700 |
---|---|---|
committer | Victor Zverovich <viz@meta.com> | 2023-10-15 08:23:36 -0700 |
commit | d9063baf227882da0f48c761abcbb08247eb1296 (patch) | |
tree | 0102b260c56beec1a5c4ac3bcaa66f7c3d03666b | |
parent | f7542c5761ffe5ba6078c45b89e83a1afe1f06c2 (diff) | |
download | fmtlib-d9063baf227882da0f48c761abcbb08247eb1296.tar.gz |
Fix perf regression in ostream::print
-rw-r--r-- | include/fmt/os.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 <typename... T> void print(format_string<T...> fmt, T&&... args) { - vformat_to(detail::buffer_appender<char>(buffer_), fmt, + vformat_to(std::back_inserter(buffer_), fmt, fmt::make_format_args(args...)); } }; |