KDAB / KDAlgorithms

Algorithm wrappers
Other
82 stars 15 forks source link

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

Open narnaud opened 5 months ago

narnaud commented 5 months ago

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<