mirror of
https://github.com/PerMalmberg/libcron.git
synced 2025-04-22 00:13:01 -05:00
Use c_encoding function for datatype conversion (#5)
* Use c_encoding function The MSVC compiler does not accept direct conversion from weekday datatype (used in the date.h dependency) to unsigned int used in the DayOfWeek Enum. However, the c_encoding function gives the necessary datatype conversion. * Updated submodule libcron/externals/date Co-authored-by: Heinz-Peter Liechtenecker <h.liechtenecker@fh-kaernten.at>
This commit is contained in:
parent
b82267acca
commit
440f5099ba
2
libcron/externals/date
vendored
2
libcron/externals/date
vendored
@ -1 +1 @@
|
||||
Subproject commit e7e1482087f58913b80a20b04d5c58d9d6d90155
|
||||
Subproject commit cac99da8dc88be719a728dc1b597b0ac307c1800
|
@ -46,7 +46,7 @@ namespace libcron
|
||||
//Add days until the current weekday is one of the allowed weekdays
|
||||
year_month_weekday ymw = date::floor<days>(curr);
|
||||
|
||||
if (data.get_day_of_week().find(static_cast<DayOfWeek>(unsigned(ymw.weekday()))) ==
|
||||
if (data.get_day_of_week().find(static_cast<DayOfWeek>(ymw.weekday().c_encoding())) ==
|
||||
data.get_day_of_week().end())
|
||||
{
|
||||
sys_days s = ymd;
|
||||
|
Loading…
x
Reference in New Issue
Block a user