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

Make example code adhere to C.65 #2151

Merged
merged 1 commit into from
Oct 12, 2023
Merged

Conversation

beinhaerter
Copy link
Contributor

C.65 requires move assignment to be safe for self-assignment. The given example is not safe for self-assignment as given right now. This commit fixes this.

C.65 requires move assignment to be safe for self-assignment. The given example is not safe for self-assignment as given right now. This commit fixes this.
@hsutter
Copy link
Contributor

hsutter commented Oct 12, 2023

Editors call: Looks good, thanks!

@hsutter hsutter merged commit a43285d into isocpp:master Oct 12, 2023
1 check 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.

2 participants