From 008178eee1ef2f2d7ecdc095f2170ee3309454ac Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sat, 21 May 2016 12:46:11 -0400 Subject: [PATCH] Make construction from local_days explicit --- date.h | 6 +++--- iso_week.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/date.h b/date.h index 80766bb..bff7942 100644 --- a/date.h +++ b/date.h @@ -333,7 +333,7 @@ public: explicit CONSTCD11 weekday(unsigned wd) NOEXCEPT; explicit weekday(int) = delete; CONSTCD11 weekday(const sys_days& dp) NOEXCEPT; - CONSTCD11 weekday(const local_days& dp) NOEXCEPT; + CONSTCD11 explicit weekday(const local_days& dp) NOEXCEPT; weekday& operator++() NOEXCEPT; weekday operator++(int) NOEXCEPT; @@ -546,7 +546,7 @@ public: CONSTCD14 year_month_day(const year_month_day_last& ymdl) NOEXCEPT; CONSTCD14 year_month_day(sys_days dp) NOEXCEPT; - CONSTCD14 year_month_day(local_days dp) NOEXCEPT; + CONSTCD14 explicit year_month_day(local_days dp) NOEXCEPT; year_month_day& operator+=(const months& m) NOEXCEPT; year_month_day& operator-=(const months& m) NOEXCEPT; @@ -659,7 +659,7 @@ public: CONSTCD11 year_month_weekday(const date::year& y, const date::month& m, const date::weekday_indexed& wdi) NOEXCEPT; CONSTCD14 year_month_weekday(const sys_days& dp) NOEXCEPT; - CONSTCD14 year_month_weekday(const local_days& dp) NOEXCEPT; + CONSTCD14 explicit year_month_weekday(const local_days& dp) NOEXCEPT; year_month_weekday& operator+=(const months& m) NOEXCEPT; year_month_weekday& operator-=(const months& m) NOEXCEPT; diff --git a/iso_week.h b/iso_week.h index 320540e..b7105d3 100644 --- a/iso_week.h +++ b/iso_week.h @@ -97,7 +97,7 @@ public: CONSTCD11 weekday(date::weekday wd) NOEXCEPT; explicit weekday(int) = delete; CONSTCD11 weekday(const sys_days& dp) NOEXCEPT; - CONSTCD11 weekday(const local_days& dp) NOEXCEPT; + CONSTCD11 explicit weekday(const local_days& dp) NOEXCEPT; weekday& operator++() NOEXCEPT; weekday operator++(int) NOEXCEPT; @@ -361,7 +361,7 @@ public: const iso_week::weekday& wd) NOEXCEPT; CONSTCD14 year_weeknum_weekday(const year_lastweek_weekday& ylwwd) NOEXCEPT; CONSTCD14 year_weeknum_weekday(const sys_days& dp) NOEXCEPT; - CONSTCD14 year_weeknum_weekday(const local_days& dp) NOEXCEPT; + CONSTCD14 explicit year_weeknum_weekday(const local_days& dp) NOEXCEPT; year_weeknum_weekday& operator+=(const years& y) NOEXCEPT; year_weeknum_weekday& operator-=(const years& y) NOEXCEPT;