Skip to content

<chrono> [time.parse] - #1768

Merged
Stephan T. Lavavej (StephanTLavavej) merged 24 commits into
microsoft:feature/chronofrom
MattStephanson:time-parse
Mar 26, 2021
Merged

<chrono> [time.parse]#1768
Stephan T. Lavavej (StephanTLavavej) merged 24 commits into
microsoft:feature/chronofrom
MattStephanson:time-parse

Conversation

@MattStephanson

Copy link
Copy Markdown
Contributor

Also includes a minor update to clock_cast, to recognize that sys_clock can be converted directly to/from utc_clock, even though it doesn't have to/from_utc.

@MattStephanson Matt Stephanson (MattStephanson) changed the title [time.parse] <chrono> [time.parse] Mar 23, 2021

@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is amazing! I've reviewed the product code and (aside from nitpicks/typos that I'll push changes for), I have only 7 open questions - some about proposed stylistic improvements, and a couple about potential integer overflows. I'll resolve all of my comments except those open questions.

I'll review the test code tomorrow.

Comment thread stl/inc/chrono Outdated
Comment thread stl/inc/chrono Outdated
Comment thread stl/inc/chrono Outdated
Comment thread stl/inc/chrono Outdated
Comment thread stl/inc/chrono Outdated
Comment thread stl/inc/chrono
Comment thread stl/inc/chrono
Comment thread stl/inc/chrono Outdated
Comment thread stl/inc/chrono Outdated
Comment thread stl/inc/chrono Outdated
Comment thread stl/inc/chrono

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed test code! Will push simple changes.

Comment thread tests/std/tests/P0355R7_calendars_and_time_zones_io/test.cpp Outdated
Comment thread tests/std/tests/P0355R7_calendars_and_time_zones_io/test.cpp
Comment thread tests/std/tests/P0355R7_calendars_and_time_zones_io/test.cpp
Comment thread tests/std/tests/P0355R7_calendars_and_time_zones_io/test.cpp
Comment thread tests/std/tests/P0355R7_calendars_and_time_zones_io/test.cpp
Comment thread tests/std/tests/P0355R7_calendars_and_time_zones_io/test.cpp
Comment thread tests/std/tests/P0355R7_calendars_and_time_zones_io/test.cpp Outdated
Comment thread tests/std/tests/P0355R7_calendars_and_time_zones_io/test.cpp Outdated
Comment thread tests/std/tests/P0355R7_calendars_and_time_zones_io/test.cpp Outdated
Comment thread tests/std/tests/P0355R7_calendars_and_time_zones_io/test.cpp

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks great! I pushed a one-line change to remove std:: qualification from numeric_limits.

@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit 027fc9f into microsoft:feature/chrono Mar 26, 2021
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks for taking the time to parse this Standardese into code! 😹 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chrono C++20 chrono cxx20 C++20 feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants