I am getting this warning, until now I didn't get any warning :
error C2220: the following warning is treated as an error
warning C4834: discarding return value of function with 'nodiscard' attribute
template <typename T>
static void quick_hull(std::vector<T> &points)
{
points = hull(points);
// Remove successive duplicates
std::unique(begin(points), end(points), [](const T &a, const T &b) { return (a.x == b.x) && (a.y == b.y); });
}
Can you please explain why does this happen ?