X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Ftypes.h;h=381c5d6b942a600aa0a73f4c55a5ddb05bd8a812;hb=f42301f63ec9e3da7caec818a2416dc79c461491;hp=949306b8faae2433ec7dc92862074596155d0029;hpb=ee6e4f90ce63d7eb3a54937cffb33510398d2349;p=quassel.git diff --git a/src/common/types.h b/src/common/types.h index 949306b8..381c5d6b 100644 --- a/src/common/types.h +++ b/src/common/types.h @@ -18,8 +18,8 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#ifndef _TYPES_H_ -#define _TYPES_H_ +#ifndef TYPES_H_ +#define TYPES_H_ #include #include @@ -37,6 +37,8 @@ class SignedId { inline bool operator==(const SignedId &other) const { return id == other.id; } inline bool operator!=(const SignedId &other) const { return id != other.id; } inline bool operator<(const SignedId &other) const { return id < other.id; } + inline bool operator>(const SignedId &other) const { return id > other.id; } + inline bool operator>=(const SignedId &other) const { return id >= other.id; } inline bool operator==(int i) const { return id == i; } inline bool operator!=(int i) const { return id != i; } inline bool operator<(int i) const { return id < i; }