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

Explicitly default CStringView copy-assignment #235

Merged

Conversation

omartijn
Copy link
Contributor

This is good form, since the class has a user-declared copy constructor.
Without this, clang emits the following warning:

warning: definition of implicit copy assignment operator for 'CStringView'
is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy]

This is good form, since the class has a user-declared copy constructor.
Without this, clang emits the following warning:

warning: definition of implicit copy assignment operator for 'CStringView'
is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy]
@ras0219-msft ras0219-msft merged commit 72deea4 into microsoft:main Oct 26, 2021
@ras0219-msft
Copy link
Contributor

This LGTM, thanks for the improvement!

@omartijn omartijn deleted the fix-deprecated-implicit-copy-assignment branch October 26, 2021 16:02
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.

3 participants