Skip to content

fix: Invalidated iterator error in Visual Studio build - #2208

Merged
RobBuchananCompPhys merged 1 commit into
developfrom
fix-invalidated-iterator-msvc
Jul 25, 2025
Merged

fix: Invalidated iterator error in Visual Studio build#2208
RobBuchananCompPhys merged 1 commit into
developfrom
fix-invalidated-iterator-msvc

Conversation

@RobBuchananCompPhys

@RobBuchananCompPhys RobBuchananCompPhys commented Jul 24, 2025

Copy link
Copy Markdown
Contributor

When debugging on MSVC, the method ChangeStore::storeAndReset errors out when iterating over target atoms due to an invalidated iterator error. This is caused by erasing the atoms while iterating over them. This PR aims to fix it by removing the erase call.

@RobBuchananCompPhys
RobBuchananCompPhys marked this pull request as ready for review July 25, 2025 08:25
@RobBuchananCompPhys
RobBuchananCompPhys merged commit 53fb663 into develop Jul 25, 2025
11 checks passed
@RobBuchananCompPhys
RobBuchananCompPhys deleted the fix-invalidated-iterator-msvc branch July 25, 2025 08:33
@github-actions github-actions Bot mentioned this pull request Nov 21, 2025
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