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

Add blanket wording for "Returns: *this." on assignment operators #5809

Open
jwakely opened this issue Sep 3, 2022 · 0 comments
Open

Add blanket wording for "Returns: *this." on assignment operators #5809

jwakely opened this issue Sep 3, 2022 · 0 comments
Assignees

Comments

@jwakely
Copy link
Member

jwakely commented Sep 3, 2022

It seems unnecessary to state everywhere that standard library types' assignment operators return *this.

We should just say in one place that any X::operator= that is declared with a return type of X& returns *this.

@jwakely jwakely self-assigned this Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant