On Tue, Oct 4, 2022 at 9:24 PM Edward Catmur <email@example.com> wrote:
> It would probably make sense to warn on / deprecate `std::format_to(T(&)[N], ...)`. I think compilers should be able to do that without any change to the Standard.
It's not just C arrays. If I pass std::array::begin() or data() or
std::array::begin() or data() the same thing happens.
That's obviously incorrect, though (passing in the beginning of a finite range) so it's less of a concern. Passing an array by reference looks like it should work (and does work elsewhere).