diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-10-01 14:24:22 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-10-01 14:24:22 +0200 |
commit | 2d5e75fda139ce5e0b9285f558ee1f575e12c9dc (patch) | |
tree | 9190ee3b4d76e21315fdcef230dceab009cc8139 /tracker-pt | |
parent | a8868f92ac8320143dea7f56b9072936ed3ca6be (diff) |
tracker/pt: use std::{begin,end}
Diffstat (limited to 'tracker-pt')
-rw-r--r-- | tracker-pt/point_tracker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tracker-pt/point_tracker.cpp b/tracker-pt/point_tracker.cpp index b0ed7a6c..c35e4f37 100644 --- a/tracker-pt/point_tracker.cpp +++ b/tracker-pt/point_tracker.cpp @@ -78,7 +78,8 @@ void PointModel::get_d_order(const vec2* points, unsigned* d_order, const vec2& for (unsigned i = 0; i < cnt; ++i) d_vals[i] = t(d.dot(points[i]), i); - std::sort(d_vals, d_vals + 3, [](t a, t& b) { return a.first < b.first; }); + std::sort(std::begin(d_vals), std::end(d_vals), + [](t a, t& b) { return a.first < b.first; }); for (unsigned i = 0; i < cnt; ++i) d_order[i] = d_vals[i].second; |