From cc10b4607fb5f305cd90a64a052ea827267367d5 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 8 Sep 2018 07:22:29 -0700 Subject: [PATCH] Make format_to faster on older gcc --- include/fmt/core.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index e705b93f..ffe39ee9 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1349,7 +1349,8 @@ inline typename std::enable_if< is_contiguous::value, std::back_insert_iterator>::type format_to(std::back_insert_iterator out, string_view format_str, const Args & ... args) { - return vformat_to(out, format_str, make_format_args(args...)); + format_arg_store as{args...}; + return vformat_to(out, format_str, as); } template