diff options
Diffstat (limited to 'src/times.h')
-rw-r--r-- | src/times.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/times.h b/src/times.h index 39945824..a2680ae3 100644 --- a/src/times.h +++ b/src/times.h @@ -553,6 +553,10 @@ public: return (start == other.start && (! start || *start == *other.start)); } + bool operator<(const date_interval_t& other) const { + return (start == other.start && + (! start || *start < *other.start)); + } operator bool() const { return is_valid(); |