From 02475e05ccd1aa15c6a6163834f28bfebbef796f Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Mon, 30 Nov 2026 11:47:36 +0100 Subject: RWGPS webhook and such --- server/src/geo/utm_multizonal.cppm | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'server/src/geo/utm_multizonal.cppm') diff --git a/server/src/geo/utm_multizonal.cppm b/server/src/geo/utm_multizonal.cppm index 540e309..56c6481 100644 --- a/server/src/geo/utm_multizonal.cppm +++ b/server/src/geo/utm_multizonal.cppm @@ -61,7 +61,7 @@ class from_wgs84_transforms : public multi_zone } public: - static from_wgs84_transforms const& instance() + static auto instance() -> from_wgs84_transforms const& { static from_wgs84_transforms inst; return inst; @@ -214,8 +214,7 @@ private: local_rtrees_; public: - template U> - auto insert(utm::zonable_wgs84_linestring const& ls, U&& arg) -> void + auto insert(utm::zonable_wgs84_linestring const& ls, T arg) -> void { auto zone_segments = distribute_linestring_over_zones(ls); for (auto z = utm::zone::min(); z != utm::zone::max(); z = z.next()) @@ -225,8 +224,7 @@ public: auto blse = bgeo::return_buffer( bgeo::return_envelope(ls), 30.0 /* m */); - local_rtrees_[z].insert( - index_value{blse, std::move(ls), std::forward(arg)}); + local_rtrees_[z].insert(index_value{blse, std::move(ls), arg}); } } } @@ -279,8 +277,7 @@ private: local_rtrees_; public: - template U> - auto insert(utm::zonable_wgs84_point const& p, U&& arg) -> void + auto insert(utm::zonable_wgs84_point const& p, T arg) -> void { auto to_utm = from_wgs84_transforms::instance(); -- cgit v1.3.1