Fix perf regression in ostream::print

This commit is contained in:
Victor Zverovich 2023-10-15 08:23:36 -07:00
parent f7542c5761
commit d9063baf22

View File

@ -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...));
}
};