Closed narnaud closed 3 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());
kdalgorithms::remove_duplicates
kdalgorithms::do_not_sort
But it complains that the type has no operator<
Take a vector of QPoint, and use
kdalgorithms::remove_duplicates
withkdalgorithms::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<