Skip to content

Commit

Permalink
Update Posix::time_zone comment with CTAD simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
HowardHinnant committed Jan 27, 2022
1 parent 9e83053 commit 3776e0f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/date/ptz.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
// Posix::time_zone tz{"EST5EDT,M3.2.0,M11.1.0"};
// zoned_time<system_clock::duration, Posix::time_zone> zt{tz, system_clock::now()};
//
// In C++17 CTAD simplifies this to:
//
// Posix::time_zone tz{"EST5EDT,M3.2.0,M11.1.0"};
// zoned_time zt{tz, system_clock::now()};
//
// If the rule set is missing (everything starting with ','), then the rule is that the
// alternate offset is never enabled.
//
Expand Down

0 comments on commit 3776e0f

Please sign in to comment.