X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Ftypes.h;h=0154247e75a0acb800201cea2a2b6b32d8b65cd4;hp=381c5d6b942a600aa0a73f4c55a5ddb05bd8a812;hb=ef12cc4010e853348474b4ea15c383dd596d4858;hpb=8c61baf7286e42949d7d19517690628a2c550dd1 diff --git a/src/common/types.h b/src/common/types.h index 381c5d6b..0154247e 100644 --- a/src/common/types.h +++ b/src/common/types.h @@ -37,6 +37,7 @@ 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>=(const SignedId &other) const { return id >= other.id; } inline bool operator==(int i) const { return id == i; }