X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftime%2Ftimestamp.h;h=2905c6ed5d23ad150172db2bc0b5f7ee0883cd50;hb=3fd9d04e84cdd72aabe8f9878f9e8ff006275bb6;hp=44387a216b46711a8f73280f54122b9e72990137;hpb=f6147f00575bdf6e6b53c2ab81161f5f73d0ab84;p=libs%2Fcore.git diff --git a/source/time/timestamp.h b/source/time/timestamp.h index 44387a2..2905c6e 100644 --- a/source/time/timestamp.h +++ b/source/time/timestamp.h @@ -6,7 +6,6 @@ Distributed under the LGPL #ifndef MSP_TIME_TIMESTAMP_H_ #define MSP_TIME_TIMESTAMP_H_ -#include #include "timedelta.h" #include "types.h" @@ -51,7 +50,7 @@ public: bool operator<(const TimeStamp &t) const { return usec0; } + operator const void *() const { return usec>0 ? this : 0; } static TimeStamp from_unixtime(time_t t) { return TimeStamp(t*1000000LL); } private: