summaryrefslogtreecommitdiff
path: root/times.h
diff options
context:
space:
mode:
Diffstat (limited to 'times.h')
-rw-r--r--times.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/times.h b/times.h
index db628d87..df5bd75b 100644
--- a/times.h
+++ b/times.h
@@ -86,6 +86,20 @@ struct interval_t
TRACE_CTOR(interval_t,
"int, int, int, const datetime_t&, const datetime_t&");
}
+ interval_t(const interval_t& other)
+ : years(other.years),
+ months(other.months),
+ days(other.days),
+ hours(other.hours),
+ minutes(other.minutes),
+ seconds(other.seconds),
+
+ begin(other.begin),
+ end(other.end),
+
+ advanced(other.advanced) {
+ TRACE_CTOR(interval_t, "copy");
+ }
interval_t(const string& desc)
: years(0), months(0), days(0),
@@ -149,7 +163,7 @@ extern bool day_before_month;
#if 0
struct intorchar
{
- int ival;
+ int ival;
string sval;
intorchar() : ival(-1) {}