KDAlgorithms icon indicating copy to clipboard operation
KDAlgorithms copied to clipboard

kdalgorithms::remove_duplicates doesn't work if the type is not sortable

Open narnaud opened this issue 2 years ago • 0 comments

Take a vector of QPoint, and use kdalgorithms::remove_duplicates with kdalgorithms::do_not_sort: I would expect this to do: points.erase(std::unique(points.begin(), points.end()), points.end());

But it complains that the type has no operator<

narnaud avatar Jan 10 '24 16:01 narnaud