Skip to content

Strict weak revisited (just the fix)#188

Merged
WerWolv merged 20 commits into
WerWolv:masterfrom
shewitt-au:strict-weak-revisited-just-the-fix
Jul 31, 2025
Merged

Strict weak revisited (just the fix)#188
WerWolv merged 20 commits into
WerWolv:masterfrom
shewitt-au:strict-weak-revisited-just-the-fix

Conversation

@shewitt-au
Copy link
Copy Markdown
Contributor

@shewitt-au shewitt-au commented Jul 31, 2025

Overview

Some time ago I fixed a crash related to sorting in the pattern drawer. The cause was a sort predicate that did not implement strict weak ordering correctly. I have revisited this and found (and fixed) another violation (transitivity of incomparability).

This version of the PR contains just the fix.

The issue is here.

A version with the sort checking code can be found here. See this version for a more detailed description.

@shewitt-au shewitt-au changed the title Strict weak revisited just the fix Strict weak revisited (just the fix) Jul 31, 2025
@shewitt-au shewitt-au marked this pull request as ready for review July 31, 2025 17:28
@WerWolv WerWolv merged commit 0fde0e3 into WerWolv:master Jul 31, 2025
5 checks passed
lawm pushed a commit to lawm/PatternLanguage that referenced this pull request Mar 13, 2026
…v#188)

* Not working. Committed before I stuff shit up further.

* Undo lunacy

* Note to self

* This is actually starting to find issues

* Fix sort bug (ImHex, not checker)

* Move variant type index code into header

* DRY

* Tidy up

* Make sort checks optional

* tidy up

* Put checks in other container types

* Disable sort checks

* Make enable macro cover more code

* Remove namespace qual

* disable sort checks

* Add static_assert. Fiddle around

* Remove sort check code

* Remove formatting change

* Adjust codeing style

* More style changes
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