diff --git a/Components/ClockReceiver.hpp b/Components/ClockReceiver.hpp index 2227a5afa..ae03b9688 100644 --- a/Components/ClockReceiver.hpp +++ b/Components/ClockReceiver.hpp @@ -54,17 +54,18 @@ template class WrappedInt { return *static_cast(this); } - inline T operator +(const T &rhs) const { return T(length_ + rhs.length_); } - inline T operator -(const T &rhs) const { return T(length_ - rhs.length_); } + inline T operator +(const T &rhs) const { return T(length_ + rhs.length_); } + inline T operator -(const T &rhs) const { return T(length_ - rhs.length_); } inline bool operator <(const T &rhs) const { return length_ < rhs.length_; } inline bool operator >(const T &rhs) const { return length_ > rhs.length_; } - inline bool operator <=(const T &rhs) const { return length_ <= rhs.length_; } - inline bool operator >=(const T &rhs) const { return length_ >= rhs.length_; } - inline bool operator ==(const T &rhs) const { return length_ == rhs.length_; } - inline bool operator !=(const T &rhs) const { return length_ != rhs.length_; } + inline bool operator <=(const T &rhs) const { return length_ <= rhs.length_; } + inline bool operator >=(const T &rhs) const { return length_ >= rhs.length_; } + inline bool operator ==(const T &rhs) const { return length_ == rhs.length_; } + inline bool operator !=(const T &rhs) const { return length_ != rhs.length_; } inline bool operator !() const { return !length_; } + inline operator bool() const { return !!length_; } inline int as_int() const { return length_; }