X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Ftypes.h;h=e2acbeb316a1e6f92e8b8784292aaf7a52b503bb;hb=90ee8b5c90923a3d4a48fc5493ca999e9d0d6a97;hp=949306b8faae2433ec7dc92862074596155d0029;hpb=ee6e4f90ce63d7eb3a54937cffb33510398d2349;p=quassel.git diff --git a/src/common/types.h b/src/common/types.h index 949306b8..e2acbeb3 100644 --- a/src/common/types.h +++ b/src/common/types.h @@ -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; }