From 8140d979cdaf1555fa424af018720710307a400d Mon Sep 17 00:00:00 2001 From: Andre Nguyen Date: Thu, 20 Aug 2020 22:05:55 -0400 Subject: [PATCH] fix brace value initialization for msvc 18 --- include/date/tz_private.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/date/tz_private.h b/include/date/tz_private.h index 798fcf5..aec01d0 100644 --- a/include/date/tz_private.h +++ b/include/date/tz_private.h @@ -95,9 +95,9 @@ private: U& operator=(const pair& x); } u; - std::chrono::hours h_{}; - std::chrono::minutes m_{}; - std::chrono::seconds s_{}; + std::chrono::hours h_{0}; + std::chrono::minutes m_{0}; + std::chrono::seconds s_{0}; tz zone_{tz::local}; public: @@ -245,7 +245,7 @@ struct zonelet sys_seconds until_utc_; local_seconds until_std_; local_seconds until_loc_; - std::chrono::minutes initial_save_{}; + std::chrono::minutes initial_save_{0}; std::string initial_abbrev_; std::pair first_rule_{nullptr, date::year::min()}; std::pair last_rule_{nullptr, date::year::max()};