Skip to content

Commit de2dc62

Browse files
committed
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 <[email protected]>
1 parent c5fa210 commit de2dc62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libstdc++-v3/include/bits/basic_string.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CXX11
17481748
{
17491749
__glibcxx_requires_valid_range(__first, __last);
17501750
return _M_replace(size_type(0), size(),
1751-
std::__to_address(__first), __last - __first);
1751+
std::to_address(__first), __last - __first);
17521752
}
17531753
#endif
17541754
else

0 commit comments

Comments
 (0)