X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Ftypes.h;h=0154247e75a0acb800201cea2a2b6b32d8b65cd4;hb=3439fc6d10d49edb1af23fd2f4ebb688692475d7;hp=381c5d6b942a600aa0a73f4c55a5ddb05bd8a812;hpb=78fe605abd76277f479cad74df2b1302cdd05db6;p=quassel.git 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; }