Browse Source
sortListbyCmpValue used >= 0, which returns true when comparing equal elements (Cmp returns 0 for equal strings). This violates the irreflexivity requirement of strict weak ordering, causing undefined behavior in std::sort.pull/22/head
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue