]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Replace std::__to_address in C++20 branch in <string>
authorJonathan Wakely <jwakely@redhat.com>
Tue, 22 Oct 2024 20:23:06 +0000 (21:23 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 23 Oct 2024 14:12:48 +0000 (15:12 +0100)
commitde2dc62379b7a2c93e11b03804380af072fd249b
tree34386f4ebf74085cdc4c7f73923ad6e50ffa4ddf
parentc5fa2108ce0f3030cb28f47a18bc974c4224b66d
libstdc++: Replace std::__to_address in C++20 branch in <string>

As noted by Patrick, r15-4546-g85e5b80ee2de80 should have changed the
usage of std::__to_address to std::to_address in the C++20-specific
branch that works on types satisfying std::contiguous_iterator.

libstdc++-v3/ChangeLog:

* include/bits/basic_string.h (assign(Iter, Iter)): Call
std::to_address instead of __to_address.

Reviewed-by: Patrick Palka <ppalka@redhat.com>
libstdc++-v3/include/bits/basic_string.h