mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-23 12:31:09 +00:00
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:
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user