diff --git a/include/fmt/format.h b/include/fmt/format.h index bbaef4b00c0d..2acbd6820a27 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -2699,10 +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, - Args&&... args) -> +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...); detail::vformat_to(buf, to_string_view(format_str), vargs);