diff --git a/include/geo/box.h b/include/geo/box.h index 63b6bd9..a87c22f 100644 --- a/include/geo/box.h +++ b/include/geo/box.h @@ -87,6 +87,10 @@ struct box { return lat_overlaps && lng_overlaps; } + friend bool operator==(box const& lhs, box const& rhs) noexcept { + return lhs.min_ == rhs.min_ && lhs.max_ == rhs.max_; + } + latlng min_, max_; };