Apparently, I don't know the difference between 'left' and 'right'. Swap parameters named 'lhs' and 'rhs' so that they correctly refer to the 'left hand side' and 'right hand side' of comparisons. No functionality change. Thanks to Arthur O'Dwyer for pointing this out to me.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@192080 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4a0555a9d4
commit
3f433cdb8e
@ -23,8 +23,8 @@ struct X
|
||||
constexpr X(int i) : i_(i) {}
|
||||
};
|
||||
|
||||
constexpr bool operator == ( const X &rhs, const X &lhs )
|
||||
{ return rhs.i_ == lhs.i_ ; }
|
||||
constexpr bool operator == ( const X &lhs, const X &rhs )
|
||||
{ return lhs.i_ == rhs.i_ ; }
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -23,8 +23,8 @@ struct X
|
||||
constexpr X(int i) : i_(i) {}
|
||||
};
|
||||
|
||||
constexpr bool operator < ( const X &rhs, const X &lhs )
|
||||
{ return rhs.i_ < lhs.i_ ; }
|
||||
constexpr bool operator < ( const X &lhs, const X &rhs )
|
||||
{ return lhs.i_ < rhs.i_ ; }
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -24,8 +24,8 @@ struct X
|
||||
constexpr X(int i) : i_(i) {}
|
||||
};
|
||||
|
||||
constexpr bool operator == ( const X &rhs, const X &lhs )
|
||||
{ return rhs.i_ == lhs.i_ ; }
|
||||
constexpr bool operator == ( const X &lhs, const X &rhs )
|
||||
{ return lhs.i_ == rhs.i_ ; }
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -22,8 +22,8 @@ struct X
|
||||
constexpr X(int i) : i_(i) {}
|
||||
};
|
||||
|
||||
constexpr bool operator < ( const X &rhs, const X &lhs )
|
||||
{ return rhs.i_ < lhs.i_ ; }
|
||||
constexpr bool operator < ( const X &lhs, const X &rhs )
|
||||
{ return lhs.i_ < rhs.i_ ; }
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user