Skip to content

Conversation

@jbj
Copy link
Contributor

@jbj jbj commented Jan 11, 2019

This addresses https://discuss.lgtm.com/t/c-consider-passing-a-pointer-to-unifying-assignment-operator/1664. I've checked that the new version of the query makes the alert go away on the affected project: https://lgtm.com/query/5725802104708838857/

jbj added 2 commits January 11, 2019 11:53
The purpose of the copy assignment operator is to copy the object, so we
should not complain that a copy happens when passing the parameter. See
https://en.wikibooks.org/wiki/More_C++_Idioms/Copy-and-swap for details.
@jbj jbj added the C++ label Jan 11, 2019
@jbj jbj requested a review from a team as a code owner January 11, 2019 11:01
Copy link
Contributor

@geoffw0 geoffw0 left a comment

Choose a reason for hiding this comment

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

LGTM

@geoffw0
Copy link
Contributor

geoffw0 commented Jan 11, 2019

I note the failing language test appears to be the one removed by #747, and has nothing to do with this PR.

@geoffw0 geoffw0 merged commit a656c69 into github:master Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants