[Bug libstdc++/110917] std::format_to(int*, ...) fails to compile because of _S_make_span
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Aug 8 16:13:25 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110917
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Jonathan Wakely
<redi@gcc.gnu.org>:
https://gcc.gnu.org/g:0f0152a93d15b24ebc7f6c7455baaded6a63fb2e
commit r13-7698-g0f0152a93d15b24ebc7f6c7455baaded6a63fb2e
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Mon Aug 7 14:37:25 2023 +0100
libstdc++: Constrain __format::_Iter_sink for contiguous iterators
[PR110917]
We can't write to a span<_CharT> if the contiguous iterator has a value
type that isn't _CharT.
libstdc++-v3/ChangeLog:
PR libstdc++/110917
* include/std/format (__format::_Iter_sink<CharT, OutIter>):
Constrain partial specialization for contiguous iterators to
require the value type to be CharT.
* testsuite/std/format/functions/format_to.cc: New test.
(cherry picked from commit c5ea5aecac323e9094e4dc967f54090cb244bc6a)
More information about the Gcc-bugs
mailing list