adding comparison operators

This commit is contained in:
Daniel Larimer 2014-01-29 17:07:25 -05:00
parent ff2173c8d6
commit 36b29d74c2

View file

@ -23,6 +23,8 @@ namespace fc
enum_type& operator=( IntType i ) { value = (EnumType)i; return *this;}
enum_type& operator=( EnumType i ) { value = i; return *this;}
bool operator<( EnumType i ) { return value < i; }
bool operator>( EnumType i ) { return value < i; }
friend bool operator==( enum_type e, IntType i ) { return e.value == (EnumType)i; }
friend bool operator==( enum_type e, EnumType i ) { return e.value == i; }