Deprecate memory buffer overload of format_to

This commit is contained in:
Victor Zverovich
2021-05-30 12:59:56 -07:00
parent 07039f4b19
commit e77b22d6da
2 changed files with 7 additions and 6 deletions

View File

@@ -2835,8 +2835,9 @@ inline auto format(const Locale& loc, format_string<T...> fmt, T&&... args)
}
template <typename... T, size_t SIZE, typename Allocator>
inline auto format_to(basic_memory_buffer<char, SIZE, Allocator>& buf,
format_string<T...> fmt, T&&... args) -> appender {
FMT_DEPRECATED auto format_to(basic_memory_buffer<char, SIZE, Allocator>& buf,
format_string<T...> fmt, T&&... args)
-> appender {
detail::vformat_to(buf, string_view(fmt), fmt::make_format_args(args...));
return appender(buf);
}