Skip to content

Keep std::pair member cells on move and assignment - #595

Merged
nunoplopes merged 3 commits into
Cpp2Rust:masterfrom
lucic71:22-pair-member-identity
Nov 5, 2026
Merged

nunoplopes merged 3 commits into
Cpp2Rust:masterfrom
lucic71:22-pair-member-identity

Conversation

@lucic71

@lucic71 lucic71 commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Keep the old pointer identity of the moved from pair, otherwise pointers into the moved from pair are becoming invalid.

@nunoplopes
nunoplopes merged commit 711beb2 into Cpp2Rust:master Nov 5, 2026
9 checks 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