From fde63e0055125cc586eff2f32908a2e01b3e9586 Mon Sep 17 00:00:00 2001 From: Casey Carter Date: Tue, 15 Oct 2024 22:01:07 -0700 Subject: [PATCH] VSO-2228189 shoud be fixed in 17.12p3 --- stl/inc/chrono | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/stl/inc/chrono b/stl/inc/chrono index c983d982154..089599c8934 100644 --- a/stl/inc/chrono +++ b/stl/inc/chrono @@ -2209,9 +2209,8 @@ namespace chrono { auto [_Icu_version, _Zones, _Links] = _Tzdb_generate_time_zones(); auto [_Leap_sec, _All_ls_positive] = _Tzdb_generate_leap_seconds(0); auto _Version = _Icu_version + "." + _STD to_string(_Leap_sec.size()); - // TRANSITION, VSO-2228186, should call emplace_front with construction arguments - _Tzdb_list.emplace_front(tzdb{ - _STD move(_Version), _STD move(_Zones), _STD move(_Links), _STD move(_Leap_sec), _All_ls_positive}); + _Tzdb_list.emplace_front( + _STD move(_Version), _STD move(_Zones), _STD move(_Links), _STD move(_Leap_sec), _All_ls_positive); } _NODISCARD const tzdb& front() const noexcept { @@ -2267,9 +2266,8 @@ namespace chrono { } auto _Version = _Tzdb_update_version(_Tzdb.version, _Leap_sec.size()); - // TRANSITION, VSO-2228186, should call emplace_front with construction arguments - _Tzdb_list.emplace_front(tzdb{ - _STD move(_Version), _STD move(_Zones), _STD move(_Links), _STD move(_Leap_sec), _All_ls_positive}); + _Tzdb_list.emplace_front( + _STD move(_Version), _STD move(_Zones), _STD move(_Links), _STD move(_Leap_sec), _All_ls_positive); } return _Tzdb_list.front(); }