Skip to content

Commit

Permalink
Fix perf regression in ostream::print
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Oct 15, 2023
1 parent f7542c5 commit d9063ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -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...));
}
};
Expand Down

0 comments on commit d9063ba

Please sign in to comment.