mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 16:41:04 +08:00
Make construction from local_days explicit
This commit is contained in:
parent
9fba53aa52
commit
008178eee1
6
date.h
6
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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user