diff --git a/include/fmt/format.h b/include/fmt/format.h index bbaef4b00c0d2..e9ea6e80de389 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2699,9 +2699,10 @@ inline void vformat_to( return detail::vformat_to(buf, to_string_view(format_str), args); } -template ::value, char_t>> -inline auto format_to(basic_memory_buffer& buf, const S& format_str, +template ::value)> +inline auto format_to(basic_memory_buffer& buf, + const S& format_str, Args&&... args) -> typename buffer_context::iterator { const auto& vargs = fmt::make_args_checked(format_str, args...);