summaryrefslogtreecommitdiff
path: root/src/times.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-28 00:08:39 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-02-28 00:08:39 -0600
commitfc62402c60cd3faac37f3cd60ee417d119869929 (patch)
tree66aeec13f31162eda41f8d3eed114c34859c386c /src/times.h
parent6d04f605738fe47477fdc95342008dfe7d091c1a (diff)
downloadfork-ledger-fc62402c60cd3faac37f3cd60ee417d119869929.tar.gz
fork-ledger-fc62402c60cd3faac37f3cd60ee417d119869929.tar.bz2
fork-ledger-fc62402c60cd3faac37f3cd60ee417d119869929.zip
Fixed nasty problem related to interval reporting
Diffstat (limited to 'src/times.h')
-rw-r--r--src/times.h4
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();