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; }