diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-10-22 21:23:06 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-10-23 15:12:48 +0100 |
commit | de2dc62379b7a2c93e11b03804380af072fd249b (patch) | |
tree | 34386f4ebf74085cdc4c7f73923ad6e50ffa4ddf | |
parent | c5fa2108ce0f3030cb28f47a18bc974c4224b66d (diff) | |
download | gcc-de2dc62379b7a2c93e11b03804380af072fd249b.zip gcc-de2dc62379b7a2c93e11b03804380af072fd249b.tar.gz gcc-de2dc62379b7a2c93e11b03804380af072fd249b.tar.bz2 |
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>
-rw-r--r-- | libstdc++-v3/include/bits/basic_string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/basic_string.h b/libstdc++-v3/include/bits/basic_string.h index 16e356e..28b3e53 100644 --- a/libstdc++-v3/include/bits/basic_string.h +++ b/libstdc++-v3/include/bits/basic_string.h @@ -1748,7 +1748,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11 { __glibcxx_requires_valid_range(__first, __last); return _M_replace(size_type(0), size(), - std::__to_address(__first), __last - __first); + std::to_address(__first), __last - __first); } #endif else |