basic_string::substr()
passes the allocator to the newly created string
#57190
Labels
libc++
libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
libc++ is currently non-conforming in
basic_string::substr()
, because it returnsbasic_string(*this, __pos, __n, __alloc())
while the standard says it should returnbasic_string(*this, __pos, __n)
. See https://wg21.link/LWG3752.The text was updated successfully, but these errors were encountered: