diff --git a/include/fmt/compile.h b/include/fmt/compile.h index 98cd9509..dab0443c 100644 --- a/include/fmt/compile.h +++ b/include/fmt/compile.h @@ -602,8 +602,7 @@ format_to_n_result format_to_n(OutputIt out, size_t n, const CompiledFormat& cf, const Args&... args) { auto it = - cf.format_to(internal::truncating_iterator(out, n), args...) - .count(); + cf.format_to(internal::truncating_iterator(out, n), args...); return {it.base(), it.count()}; }