mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-03 20:54:27 +02:00
User defined literals are not supported by VS2013, use explicit year constructor instead
This commit is contained in:
committed by
Howard Hinnant
parent
a034eeed23
commit
494fee4e1b
4
date.h
4
date.h
@@ -77,7 +77,7 @@ namespace date
|
|||||||
# define CONSTCD14
|
# define CONSTCD14
|
||||||
# define NOEXCEPT _NOEXCEPT
|
# define NOEXCEPT _NOEXCEPT
|
||||||
# else
|
# else
|
||||||
// VS2017 and later
|
// VS2017 and later
|
||||||
# define CONSTDATA constexpr const
|
# define CONSTDATA constexpr const
|
||||||
# define CONSTCD11 constexpr
|
# define CONSTCD11 constexpr
|
||||||
# define CONSTCD14 constexpr
|
# define CONSTCD14 constexpr
|
||||||
@@ -4179,7 +4179,7 @@ operator<<(std::basic_ostream<CharT, Traits>& os, const local_time<Duration>& ut
|
|||||||
template <class Duration>
|
template <class Duration>
|
||||||
struct fields
|
struct fields
|
||||||
{
|
{
|
||||||
year_month_day ymd{0_y/0/0};
|
year_month_day ymd{year{0}/0/0};
|
||||||
weekday wd{7u};
|
weekday wd{7u};
|
||||||
time_of_day<Duration> tod{};
|
time_of_day<Duration> tod{};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user