Skip to content

Add missing std::move in Image2/Image3 move assignment operators#140

Merged
davideberly merged 1 commit intodavideberly:masterfrom
CodeReclaimers:fix/image-move-assignment
Feb 27, 2026
Merged

Add missing std::move in Image2/Image3 move assignment operators#140
davideberly merged 1 commit intodavideberly:masterfrom
CodeReclaimers:fix/image-move-assignment

Conversation

@CodeReclaimers
Copy link
Contributor

Summary

  • Both move assignment operators pass the rvalue reference parameter as an lvalue to the base class, invoking copy assignment instead of move assignment.

Test plan

  • Code inspection: Image2::operator=(Image2&&) and Image3::operator=(Image3&&) now forward via std::move() to invoke Image<PixelType>::operator=(Image&&).

🤖 Generated with Claude Code

Both move assignment operators passed the rvalue reference parameter
as an lvalue to the base class, invoking copy assignment instead of
move assignment.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@davideberly davideberly merged commit a53fc4a into davideberly:master Feb 27, 2026
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