Fix compiled format string version of format_to_n

This commit is contained in:
Victor Zverovich 2019-08-24 09:00:30 -07:00
parent a9337395a2
commit e94d723667

View File

@ -602,8 +602,7 @@ format_to_n_result<OutputIt> format_to_n(OutputIt out, size_t n,
const CompiledFormat& cf,
const Args&... args) {
auto it =
cf.format_to(internal::truncating_iterator<OutputIt>(out, n), args...)
.count();
cf.format_to(internal::truncating_iterator<OutputIt>(out, n), args...);
return {it.base(), it.count()};
}