-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Implement LWG-4274: The chrono::hh_mm_ss constructor is ill-formed for unsigned durations #5893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Thank you for these LWG PRs - I will try to sneak in a few reviews despite needing to prioritize flat_meow. Just wanted to let you know that I'm not ignoring them and I appreciate all the work (it's just arrived at an exceptionally busy time for me). |
…mm_ss from unsigned duration.
|
I took examples from both issues and added them as tests. Indeed, both should also be resolved by this PR. |
tests/std/tests/P0355R7_calendars_and_time_zones_formatting/test.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/P0355R7_calendars_and_time_zones_formatting/test.cpp
Outdated
Show resolved
Hide resolved
|
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Replace call to
chrono::absinchrono::hh_mm_ssctor with new private function handlingdurationwith unsignedrep.Add tests.
Fixes #5857
Edit:
Fixes #4144
Fixes #5569