Skip to content

Conversation

philip-paul-mueller
Copy link
Collaborator

This PR makes the Indices class a bit safer to use, a short summary:

  • The {max, min}_elements() functions were returning a reference to the underlying self.indices class, which might lead to an unintended modification of the underlying data. The new solution is that they are shallow copied.
  • The constructor was changed, the class can now also be constructed using single pass iterators.

This PR is also a RFC as I found some strange behaviour/cases, I marked them with Possible Error.
So could somebody how knows a bit more about the code base take a look at it and check if this behaviour is okay.

Copy link
Collaborator

@phschaad phschaad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@phschaad phschaad added this pull request to the merge queue Oct 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 2, 2025
@philip-paul-mueller philip-paul-mueller added this pull request to the merge queue Oct 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 3, 2025
@philip-paul-mueller philip-paul-mueller added this pull request to the merge queue Oct 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 3, 2025
@phschaad phschaad added this pull request to the merge queue Oct 8, 2025
Merged via the queue into spcl:main with commit 43568d2 Oct 8, 2025
10 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