Skip to content

Narrow the condition for the parent assignment optimisation to union …#1478

Merged
tinko92 merged 1 commit into
boostorg:developfrom
tinko92:fix/assign_parents_union_optimization_condition
Jun 29, 2026
Merged

Narrow the condition for the parent assignment optimisation to union …#1478
tinko92 merged 1 commit into
boostorg:developfrom
tinko92:fix/assign_parents_union_optimization_condition

Conversation

@tinko92

@tinko92 tinko92 commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

This PR fixes case_bitset_3 which fails for intersection due to the optimisation for one outer ring, which seems only safe for union (that seems to be consistent with the comment). The local is_difference variable was removed because it is now unused and no new variable was created because this condition is checked only on one line and is readable. The test case was enabled.

@barendgehrels barendgehrels left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks! This looks completely right

@vissarion vissarion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@tinko92 tinko92 merged commit 0500154 into boostorg:develop Jun 29, 2026
17 checks passed
@tinko92 tinko92 deleted the fix/assign_parents_union_optimization_condition branch June 29, 2026 10:26
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.

3 participants