mirror of
https://github.com/boostorg/python.git
synced 2026-01-22 05:22:45 +00:00
Add operator> for extended test_container_proxy tests
[SVN r21087]
This commit is contained in:
@@ -48,6 +48,7 @@ BOOST_TT_BROKEN_COMPILER_SPEC (int_wrapper)
|
||||
inline bool operator== (int_wrapper const &lhs, int_wrapper const &rhs);
|
||||
inline bool operator!= (int_wrapper const &lhs, int_wrapper const &rhs);
|
||||
inline bool operator< (int_wrapper const &lhs, int_wrapper const &rhs);
|
||||
inline bool operator> (int_wrapper const &lhs, int_wrapper const &rhs);
|
||||
inline int compare (int_wrapper const &lhs, int_wrapper const &rhs);
|
||||
|
||||
//
|
||||
@@ -159,6 +160,11 @@ bool operator< (int_wrapper const &lhs, int_wrapper const &rhs)
|
||||
return lhs.m_int < rhs.m_int;
|
||||
}
|
||||
|
||||
bool operator> (int_wrapper const &lhs, int_wrapper const &rhs)
|
||||
{
|
||||
return lhs.m_int > rhs.m_int;
|
||||
}
|
||||
|
||||
int compare (int_wrapper const &lhs, int_wrapper const &rhs)
|
||||
{
|
||||
if (lhs < rhs)
|
||||
|
||||
Reference in New Issue
Block a user