bool operator==(const TimeDelta &t) const { return usec==t.usec; }
bool operator!=(const TimeDelta &t) const { return usec!=t.usec; }
- operator bool() const { return usec; }
+ operator const void *() const { return usec ? this : 0; }
private:
RawTime usec;
};
bool operator<(const TimeStamp &t) const { return usec<t.usec; }
bool operator==(const TimeStamp &t) const { return usec==t.usec; }
bool operator!=(const TimeStamp &t) const { return usec!=t.usec; }
- operator bool() const { return usec>0; }
+ operator const void *() const { return usec>0 ? this : 0; }
static TimeStamp from_unixtime(time_t t) { return TimeStamp(t*1000000LL); }
private: