From e94d723667877a7472772d56ca18856c190a3f78 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 24 Aug 2019 09:00:30 -0700 Subject: [PATCH] Fix compiled format string version of format_to_n --- include/fmt/compile.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()}; }