-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix invalid iterators in grailsort strategy 3 (#183)
Grailsort creates invalid pointers here and there that are never dereferenced, so generally don't cause any issues. However, forming invalid iterators like that might cause issues, and MSVC debug iterators do trip on grailsort. This commit only fixes "strategy 3": when the algorithm can't find at least 4 unique keys in the collection.
- Loading branch information
Showing
1 changed file
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters