Don't use != in rdcpair as not every struct will implement it

* We can use !(a == b) instead for the same effect as we assume an equality
  operator.
This commit is contained in:
baldurk committed 2026-10-02 14:22:16 +01:00
1 parent 5b666aebef
commit 0db41a0cde
1 file changed
+1 -1
+1 -1
View File
@@ -86,7 +86,7 @@ struct rdcpair
bool operator==(const rdcpair<A, B> &o) const { return first == o.first && second == o.second; }
bool operator<(const rdcpair<A, B> &o) const
{
if(first != o.first)
if(!(first == o.first))
return first < o.first;
return second < o.second;
}