Skip to content

refactor: DoubleKeyedMap::clear() should not decide mirrored status.#2439

Merged
rprospero merged 1 commit into
develop2from
dissolve2/doublekeyedmap-clear-behaviour
May 18, 2026
Merged

refactor: DoubleKeyedMap::clear() should not decide mirrored status.#2439
rprospero merged 1 commit into
develop2from
dissolve2/doublekeyedmap-clear-behaviour

Conversation

@trisyoungs
Copy link
Copy Markdown
Member

@trisyoungs trisyoungs commented May 15, 2026

The clear() function in DoubleKeyedMap took an argument bool mirrored which determined whether the newly-cleared maps would be key-symmetric. However, this could override the choice made on construction of the object, leading to undesired behaviour (particularly since the argument had a default value).

Here we remove that issue and simplify the clear operation.

Works towards #2436

@rprospero rprospero merged commit 4f9b5ec into develop2 May 18, 2026
9 checks passed
@rprospero rprospero deleted the dissolve2/doublekeyedmap-clear-behaviour branch May 18, 2026 14:28
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