diff options
Diffstat (limited to 'content/geometry/sortAround.cpp')
| -rw-r--r-- | content/geometry/sortAround.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/geometry/sortAround.cpp b/content/geometry/sortAround.cpp index 9b09808..7e9d1de 100644 --- a/content/geometry/sortAround.cpp +++ b/content/geometry/sortAround.cpp @@ -3,7 +3,7 @@ bool left(pt p) { return real(p) < 0 || // counter clockwise, starting with "11:59" void sortAround(pt p, vector<pt>& ps) { - sort(all(ps), [&](const pt& a, const pt& b){ + ranges::sort(ps, [&](const pt& a, const pt& b){ if (left(a - p) != left(b - p)) return left(a - p) > left(b - p); return cross(p, a, b) > 0; |
