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
There are various WTFs in those results. Obviously the basic invariant (a < b) == !(b < a) is violated twice, and also the last 4 results are clearly inconsistent.
Also, I think the basic idea that empty sets are treated specially is wrong, because it means you can't use them for things like interval_set<>::lower_bound(). I think the correct implementation would just be:
From
interval.hpp
:This does not seem at all right. Consider this code and its results (the comments).
There are various WTFs in those results. Obviously the basic invariant
(a < b) == !(b < a)
is violated twice, and also the last 4 results are clearly inconsistent.Also, I think the basic idea that empty sets are treated specially is wrong, because it means you can't use them for things like
interval_set<>::lower_bound()
. I think the correct implementation would just be:But maybe there is code that relies on the current broken behaviour?
The text was updated successfully, but these errors were encountered: