You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
LatLng and LatLngBounds should enforce invariants #3802
It's useful to have an "empty" state for LatLngBounds: #3803. We can relax the invariant slightly and keep a bool empty() const method around for that.
Just discovered an example of how dangerous a non-explicit operator bool can be: currently LatLng(a, b) == LatLng(c, d) is true for any non-NaN a, b, c, d.
Activity
jfirebaugh commentedon Feb 3, 2016
It's useful to have an "empty" state for
LatLngBounds: #3803. We can relax the invariant slightly and keep abool empty() constmethod around for that.jfirebaugh commentedon Feb 3, 2016
Just discovered an example of how dangerous a non-explicit
operator boolcan be: currentlyLatLng(a, b) == LatLng(c, d)istruefor any non-NaN a, b, c, d.