mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-06 08:46:52 +08:00
Fix format_to_n
This commit is contained in:
parent
5bc56e24a9
commit
2d839bbc61
@ -522,7 +522,7 @@ auto format_to_n(OutputIt out, size_t n, const S& fmt, T&&... args)
|
||||
-> format_to_n_result<OutputIt> {
|
||||
using traits = detail::fixed_buffer_traits;
|
||||
auto buf = detail::iterator_buffer<OutputIt, char, traits>(out, n);
|
||||
fmt::format_to(std::back_inserter(buf), fmt, std::forward<T>(args)...);
|
||||
fmt::format_to(appender(buf), fmt, std::forward<T>(args)...);
|
||||
return {buf.out(), buf.count()};
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user