Make format_to faster on older gcc

This commit is contained in:
Victor Zverovich 2018-09-08 07:22:29 -07:00
parent 981797f059
commit cc10b4607f

View File

@ -1349,7 +1349,8 @@ inline typename std::enable_if<
is_contiguous<Container>::value, std::back_insert_iterator<Container>>::type
format_to(std::back_insert_iterator<Container> out,
string_view format_str, const Args & ... args) {
return vformat_to(out, format_str, make_format_args<format_context>(args...));
format_arg_store<format_context, Args...> as{args...};
return vformat_to(out, format_str, as);
}
template <typename Container, typename... Args>