Skip to content

Commit 1acbeae

Browse files
<chrono>: Add comments for compiler bug workarounds (#4920)
Co-authored-by: Stephan T. Lavavej <[email protected]>
1 parent 0b6e350 commit 1acbeae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stl/inc/chrono

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,6 +2209,7 @@ namespace chrono {
22092209
auto [_Icu_version, _Zones, _Links] = _Tzdb_generate_time_zones();
22102210
auto [_Leap_sec, _All_ls_positive] = _Tzdb_generate_leap_seconds(0);
22112211
auto _Version = _Icu_version + "." + _STD to_string(_Leap_sec.size());
2212+
// TRANSITION, VSO-2228186, should call emplace_front with construction arguments
22122213
_Tzdb_list.emplace_front(tzdb{
22132214
_STD move(_Version), _STD move(_Zones), _STD move(_Links), _STD move(_Leap_sec), _All_ls_positive});
22142215
}
@@ -2266,6 +2267,7 @@ namespace chrono {
22662267
}
22672268

22682269
auto _Version = _Tzdb_update_version(_Tzdb.version, _Leap_sec.size());
2270+
// TRANSITION, VSO-2228186, should call emplace_front with construction arguments
22692271
_Tzdb_list.emplace_front(tzdb{
22702272
_STD move(_Version), _STD move(_Zones), _STD move(_Links), _STD move(_Leap_sec), _All_ls_positive});
22712273
}

0 commit comments

Comments
 (0)