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:
Marshall Clow 2013-10-07 02:37:18 +00:00
parent 4a0555a9d4
commit 3f433cdb8e
4 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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