Fix timecnt_t less-than-equal operator

This commit is contained in:
Robin Gareus 2023-03-30 00:37:23 +02:00
parent 8c2454238e
commit ef7b7f4c89
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -403,7 +403,7 @@ class LIBTEMPORAL_API timecnt_t {
bool operator> (timecnt_t const & other) const { if (_distance.flagged() == other.distance().flagged()) return _distance > other.distance (); else return expensive_gt (other); }
bool operator>= (timecnt_t const & other) const { if (_distance.flagged() == other.distance().flagged()) return _distance >= other.distance(); else return expensive_gte (other); }
bool operator< (timecnt_t const & other) const { if (_distance.flagged() == other.distance().flagged()) return _distance < other.distance(); else return expensive_lt (other); }
bool operator<= (timecnt_t const & other) const { if (_distance.flagged() == other.distance().flagged()) return _distance <= other.distance(); else return expensive_gte (other); }
bool operator<= (timecnt_t const & other) const { if (_distance.flagged() == other.distance().flagged()) return _distance <= other.distance(); else return expensive_lte (other); }
timecnt_t & operator= (timecnt_t const & other) {
if (this != &other) {