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

[string.view.iterators] *this is not invalidated LWG 3457 #2866

Open
JohelEGP opened this issue May 3, 2019 · 2 comments
Open

[string.view.iterators] *this is not invalidated LWG 3457 #2866

JohelEGP opened this issue May 3, 2019 · 2 comments
Assignees
Labels
lwg Issue must be reviewed by LWG.

Comments

@JohelEGP
Copy link
Contributor

JohelEGP commented May 3, 2019

For a \tcode{basic_string_view str}, any operation that invalidates a pointer in the range \range{str.data()}{str.data() + str.size()} invalidates pointers, iterators, and references returned from \tcode{str}'s member functions.

The assignment operators return a reference to *this, but *this is not invalidated.

@jensmaurer
Copy link
Member

I think the exclusion of *this is not obviously editorial, but will need a nod by LWG.

@jensmaurer jensmaurer added the lwg Issue must be reviewed by LWG. label May 3, 2019
@JohelEGP
Copy link
Contributor Author

JohelEGP commented Jul 3, 2020

This is now https://wg21.link/LWG3457.

@jensmaurer jensmaurer changed the title [string.view.iterators] *this is not invalidated [string.view.iterators] *this is not invalidated LWG 3457 Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lwg Issue must be reviewed by LWG.
Projects
None yet
Development

No branches or pull requests

2 participants