Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic_string::substr() passes the allocator to the newly created string #57190

Closed
philnik777 opened this issue Aug 17, 2022 · 0 comments
Closed
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

Comments

@philnik777
Copy link
Contributor

libc++ is currently non-conforming in basic_string::substr(), because it returns basic_string(*this, __pos, __n, __alloc()) while the standard says it should return basic_string(*this, __pos, __n). See https://wg21.link/LWG3752.

@philnik777 philnik777 added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
None yet
Development

No branches or pull requests

1 participant