On Wed, 23 Oct 2024 at 13:18, Jonathan Wakely <[email protected]> wrote:
>
> 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.
> ---
> Tested x86_64-linux.
>
> This patch is also available as a pull request in the forge:
> https://forge.sourceware.org/gcc/gcc-TEST/pulls/2
Patrick approved this on the forge (thanks!), so I've added his
Reviewed-by: tag and pushed it now.
>
> libstdc++-v3/include/bits/basic_string.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libstdc++-v3/include/bits/basic_string.h
> b/libstdc++-v3/include/bits/basic_string.h
> index 16e356e0678..28b3e536185 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
> --
> 2.46.2
>