X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgame%2Fhandle.h;h=1808654f5e13ee4b60dd05ad633bab1b4249b75d;hb=b81c61ce06116727ebaef489f174fac6e0be6760;hp=b08bcf8e4f903028894702e8085df47174ce640f;hpb=f298027c2042b63cec903c98dfc97e792a4f923f;p=libs%2Fgame.git diff --git a/source/game/handle.h b/source/game/handle.h index b08bcf8..1808654 100644 --- a/source/game/handle.h +++ b/source/game/handle.h @@ -1,6 +1,7 @@ #ifndef MSP_GAME_HANDLE_H_ #define MSP_GAME_HANDLE_H_ +#include #include #include "pool.h" @@ -37,6 +38,7 @@ public: explicit operator bool() const { return ptr; } bool operator==(const Handle &other) const = default; + bool operator<(const Handle &other) const { return std::less()(ptr, other.ptr); } }; template