From b85e9ac38b77a919ab113e25efd7f6bf62195dfa Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 2 May 2020 21:06:03 -0700 Subject: [PATCH] Simplify vformat_to --- include/fmt/core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index b977f342..2e8d9675 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1760,8 +1760,8 @@ template , OutputIt vformat_to( OutputIt out, const S& format_str, basic_format_args>> args) { - using container = remove_reference_t; - internal::container_buffer buf((internal::get_container(out))); + auto& c = internal::get_container(out); + internal::container_buffer> buf(c); internal::vformat_to(buf, to_string_view(format_str), args); return out; }