From 494fee4e1bd2f2d7cb32403429c53127f18cf5d0 Mon Sep 17 00:00:00 2001 From: Paul Thompson Date: Thu, 20 Jul 2017 21:24:31 -0700 Subject: [PATCH] User defined literals are not supported by VS2013, use explicit year constructor instead --- date.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/date.h b/date.h index 7ed8a5f..21cd385 100644 --- a/date.h +++ b/date.h @@ -77,7 +77,7 @@ namespace date # define CONSTCD14 # define NOEXCEPT _NOEXCEPT # else -// VS2017 and later +// VS2017 and later # define CONSTDATA constexpr const # define CONSTCD11 constexpr # define CONSTCD14 constexpr @@ -4179,7 +4179,7 @@ operator<<(std::basic_ostream& os, const local_time& ut template struct fields { - year_month_day ymd{0_y/0/0}; + year_month_day ymd{year{0}/0/0}; weekday wd{7u}; time_of_day tod{};