Add an assert to try to get more info on #1506

This commit is contained in:
Maxime Coste 2017-07-19 08:40:17 +02:00
parent 7b96d56996
commit fbffd86f85

View File

@ -112,6 +112,7 @@ Iterator merge_overlapping(Iterator begin, Iterator end, size_t& main, OverlapsF
begin[i] = std::move(begin[j]);
}
}
kak_assert(std::is_sorted(begin, begin + i +1, compare_selections));
return begin + i + 1;
}