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

[class.copy.assign] Remove a superfluous note. #6619

Merged
merged 2 commits into from Nov 8, 2023

Conversation

Quuxplusone
Copy link
Contributor

Alternatively we could have added the word "non-object"; or changed it to say "An overloaded assignment operator must be a member function"; but it doesn't seem like it needs to be here at all.

(Clang, EDG, MSVC all agree that B& operator=(this B, int); is legal C++23.)

Alternatively we could have added the word "non-object"; or changed
it to say "An overloaded assignment operator must be a member function";
but it doesn't seem like it needs to be here at all.
Copy link
Member

@jensmaurer jensmaurer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine; the intent seems obvious and we already say "non-object parameter" when we define "copy assignment operator", so explicit object parameters were in scope (and intended to be accepted) when the words were last changed.

@tkoeppe tkoeppe merged commit c9c69dc into cplusplus:main Nov 8, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

None yet

3 participants