2
0
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:
Raoul Gough
2003-12-02 16:48:57 +00:00
parent 272559c3be
commit 04e16988ae

View File

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