mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 21:16:56 +00:00
Fix compiled format string version of format_to_n
This commit is contained in:
parent
a9337395a2
commit
e94d723667
@ -602,8 +602,7 @@ format_to_n_result<OutputIt> format_to_n(OutputIt out, size_t n,
|
|||||||
const CompiledFormat& cf,
|
const CompiledFormat& cf,
|
||||||
const Args&... args) {
|
const Args&... args) {
|
||||||
auto it =
|
auto it =
|
||||||
cf.format_to(internal::truncating_iterator<OutputIt>(out, n), args...)
|
cf.format_to(internal::truncating_iterator<OutputIt>(out, n), args...);
|
||||||
.count();
|
|
||||||
return {it.base(), it.count()};
|
return {it.base(), it.count()};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user