Add more comparison operators to C4Id, fixing the build

stable-5.2
Armin Burgmeier 2010-01-25 20:17:17 +01:00
parent d397a5b0a1
commit a528c7618f
1 changed files with 6 additions and 1 deletions

View File

@ -94,7 +94,12 @@ public:
void CompileFunc(StdCompiler *pComp);
inline bool operator <(const C4ID &other) const { return v < other.v; } // Other operators provided by boost
inline bool operator ==(const C4ID &other) const { return v == other.v; }
inline bool operator !=(const C4ID &other) const { return v != other.v; }
inline bool operator <(const C4ID &other) const { return v < other.v; }
inline bool operator >(const C4ID &other) const { return v > other.v; }
inline bool operator <=(const C4ID &other) const { return v <= other.v; }
inline bool operator >=(const C4ID &other) const { return v >= other.v; }
// Safe bool
typedef size_t C4ID::*safe_bool_type;