Skip to content

Conversation

@droberts195
Copy link

CLeafNodeStatistics specified a default move constructor
and move assignment operator. However, these cannot be
generated because the class has a const reference member.
They were not called anywhere, so this change removes the
= default directives to avoid compiler warnings.

CLeafNodeStatistics specified a default move constructor
and move assignment operator.  However, these cannot be
generated because the class has a const reference member.
They were not called anywhere, so this change removes the
= default directives to avoid compiler warnings.
Copy link
Contributor

@edsavage edsavage left a comment

Choose a reason for hiding this comment

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

LGTM

@droberts195 droberts195 merged commit 3ff88cc into elastic:master Dec 2, 2019
@droberts195 droberts195 deleted the remove_impossible_move branch December 2, 2019 11:51
droberts195 pushed a commit to droberts195/ml-cpp that referenced this pull request Dec 2, 2019
CLeafNodeStatistics specified a default move constructor
and move assignment operator.  However, these cannot be
generated because the class has a const reference member.
They were not called anywhere, so this change removes the
= default directives to avoid compiler warnings.

Backport of elastic#866
droberts195 pushed a commit that referenced this pull request Dec 2, 2019
CLeafNodeStatistics specified a default move constructor
and move assignment operator.  However, these cannot be
generated because the class has a const reference member.
They were not called anywhere, so this change removes the
= default directives to avoid compiler warnings.

Backport of #866
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants