From fc62402c60cd3faac37f3cd60ee417d119869929 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 28 Feb 2012 00:08:39 -0600 Subject: Fixed nasty problem related to interval reporting --- src/times.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/times.h') 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(); -- cgit v1.2.3