adding comparison operators
This commit is contained in:
parent
ff2173c8d6
commit
36b29d74c2
1 changed files with 2 additions and 0 deletions
|
|
@ -23,6 +23,8 @@ namespace fc
|
||||||
|
|
||||||
enum_type& operator=( IntType i ) { value = (EnumType)i; return *this;}
|
enum_type& operator=( IntType i ) { value = (EnumType)i; return *this;}
|
||||||
enum_type& operator=( EnumType i ) { value = 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, IntType i ) { return e.value == (EnumType)i; }
|
||||||
friend bool operator==( enum_type e, EnumType i ) { return e.value == i; }
|
friend bool operator==( enum_type e, EnumType i ) { return e.value == i; }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue