forked from fmtlib/fmt
Fix perf regression in ostream::print
This commit is contained in:
@ -419,7 +419,7 @@ class FMT_API ostream {
|
|||||||
output to the file.
|
output to the file.
|
||||||
*/
|
*/
|
||||||
template <typename... T> void print(format_string<T...> fmt, T&&... args) {
|
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...));
|
fmt::make_format_args(args...));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user