From 48433b9892ac5741f8d4d8753beb76e49c57f7c8 Mon Sep 17 00:00:00 2001 From: johnmph Date: Thu, 5 Dec 2019 20:00:16 +0100 Subject: [PATCH] Update date.h (#518) using decltype in day constructor to be consistent with month and year --- include/date/date.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/date/date.h b/include/date/date.h index 96cdc95..b6dd7b5 100644 --- a/include/date/date.h +++ b/include/date/date.h @@ -1367,7 +1367,7 @@ trunc(const std::chrono::time_point& tp) // day -CONSTCD11 inline day::day(unsigned d) NOEXCEPT : d_(static_cast(d)) {} +CONSTCD11 inline day::day(unsigned d) NOEXCEPT : d_(static_cast(d)) {} CONSTCD14 inline day& day::operator++() NOEXCEPT {++d_; return *this;} CONSTCD14 inline day day::operator++(int) NOEXCEPT {auto tmp(*this); ++(*this); return tmp;} CONSTCD14 inline day& day::operator--() NOEXCEPT {--d_; return *this;}