[Tile-serving] [openstreetmap/osm2pgsql] Add operators to make points sortable (PR #1925)
Jochen Topf
notifications at github.com
Fri Feb 24 09:47:52 UTC 2023
@joto commented on this pull request.
> @@ -84,6 +84,23 @@ class point_t
return !(a == b);
}
+ /// Give points an (arbitrary) order.
+ [[nodiscard]] constexpr friend bool operator<(point_t a, point_t b) noexcept
+ {
+ if (a.x() == b.x()) {
+ return a.y() < b.y();
I have amended the test.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1925#discussion_r1116740481
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/1925/review/1312949456 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230224/701970b7/attachment.htm>
More information about the Tile-serving
mailing list