diff --git a/include/fc/io/varint.hpp b/include/fc/io/varint.hpp index 30e42bb..2b58ee2 100644 --- a/include/fc/io/varint.hpp +++ b/include/fc/io/varint.hpp @@ -28,6 +28,14 @@ struct unsigned_int { friend bool operator<( const uint64_t& i, const unsigned_int& v ) { return i < v.value; } friend bool operator<( const unsigned_int& i, const unsigned_int& v ) { return i.value < v.value; } + friend bool operator<=( const unsigned_int& i, const uint64_t& v ) { return i.value <= v; } + friend bool operator<=( const uint64_t& i, const unsigned_int& v ) { return i <= v.value; } + friend bool operator<=( const unsigned_int& i, const unsigned_int& v ) { return i.value <= v.value; } + + friend bool operator>( const unsigned_int& i, const uint64_t& v ) { return i.value > v; } + friend bool operator>( const uint64_t& i, const unsigned_int& v ) { return i > v.value; } + friend bool operator>( const unsigned_int& i, const unsigned_int& v ) { return i.value > v.value; } + friend bool operator>=( const unsigned_int& i, const uint64_t& v ) { return i.value >= v; } friend bool operator>=( const uint64_t& i, const unsigned_int& v ) { return i >= v.value; } friend bool operator>=( const unsigned_int& i, const unsigned_int& v ) { return i.value >= v.value; }