Skip to content

Conversation

@WeiqunZhang
Copy link
Member

  • Move instead of copy.

  • std::vector::erase invalidates the iterator, thus the original code has undefined behavior in principle.

@WeiqunZhang WeiqunZhang requested a review from atmyers November 18, 2024 17:06
@atmyers atmyers merged commit b98eaaf into AMReX-Codes:development Nov 18, 2024
75 checks passed
@WeiqunZhang WeiqunZhang deleted the fix_warn_4233 branch November 18, 2024 18:29
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