Skip to content

Commit 8976e32

Browse files
committed
Deprecate array vformat_to
1 parent 45ed657 commit 8976e32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/fmt/base.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2724,6 +2724,7 @@ inline auto arg(const Char* name, const T& arg) -> detail::named_arg<Char, T> {
27242724
template <typename OutputIt,
27252725
FMT_ENABLE_IF(detail::is_output_iterator<remove_cvref_t<OutputIt>,
27262726
char>::value)>
2727+
// DEPRECATED! Passing out as a forwarding reference.
27272728
auto vformat_to(OutputIt&& out, string_view fmt, format_args args)
27282729
-> remove_cvref_t<OutputIt> {
27292730
auto&& buf = detail::get_buffer<char>(out);
@@ -2789,8 +2790,8 @@ struct format_to_result {
27892790
};
27902791

27912792
template <size_t N>
2792-
auto vformat_to(char (&out)[N], string_view fmt, format_args args)
2793-
-> format_to_result {
2793+
FMT_DEPRECATED auto vformat_to(char (&out)[N], string_view fmt,
2794+
format_args args) -> format_to_result {
27942795
auto result = vformat_to_n(out, N, fmt, args);
27952796
return {result.out, result.size > N};
27962797
}

0 commit comments

Comments
 (0)