Skip to content

Commit

Permalink
Actually use the predicate supplied to smart_list::sort.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja-MiT committed Feb 22, 2014
1 parent 939e080 commit 077bbda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/smart_list.hpp
Expand Up @@ -578,7 +578,7 @@ inline void smart_list<Data>::sort(const BinaryPredicate & p)
// Merge consecutive data-bearing lists. Summing over all iterations of
// this (inner) loop, there will be O(n) comparisons made.
for ( size_type i = 0; i + step < count; i += 2*step )
sorter[i].merge(sorter[i+step]);
sorter[i].merge(sorter[i+step], p);

// The entire (sorted) list is now in the first element of the vector.
swap(sorter[0]);
Expand Down

0 comments on commit 077bbda

Please sign in to comment.