From 1baf38d8bc35c03c9e7afeed33a854509018c792 Mon Sep 17 00:00:00 2001 From: Dmitry Kokorin Date: Thu, 17 Mar 2016 00:19:03 +0300 Subject: [PATCH] gigasecond: iteration 2, typo fix --- cpp/gigasecond/gigasecond.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/gigasecond/gigasecond.h b/cpp/gigasecond/gigasecond.h index 48759bd..4b8578e 100644 --- a/cpp/gigasecond/gigasecond.h +++ b/cpp/gigasecond/gigasecond.h @@ -10,7 +10,7 @@ namespace gigasecond { typedef boost::gregorian::date date_t; typedef boost::gregorian::date_duration date_duration_t; -static inline date_t advance(date_t date) +static inline date_t advance(const date_t &date) { return date + date_duration_t(1000000000 / (60*60*24)); }