Skip to content

Conversation

@vmichal
Copy link

@vmichal vmichal commented Nov 21, 2025

Replace call to chrono::abs in chrono::hh_mm_ss ctor with new private function handling duration with unsigned rep.
Add tests.

Fixes #5857
Edit:
Fixes #4144
Fixes #5569

@vmichal vmichal requested a review from a team as a code owner November 21, 2025 09:51
@github-project-automation github-project-automation bot moved this to Initial Review in STL Code Reviews Nov 21, 2025
@StephanTLavavej StephanTLavavej added LWG Library Working Group issue chrono C++20 chrono labels Nov 21, 2025
@StephanTLavavej
Copy link
Member

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).

@frederick-vs-ja
Copy link
Contributor

Looks like that this PR should also fix #4144 and #5569.

@vmichal
Copy link
Author

vmichal commented Nov 23, 2025

Looks like that this PR should also fix #4144 and #5569.

Thanks for the suggestion, I will check them thoroughly (on the first glance they indeed seem fixed) soon. If they indeed were fixed, I will add them to the list.

@vmichal
Copy link
Author

vmichal commented Nov 23, 2025

I took examples from both issues and added them as tests. Indeed, both should also be resolved by this PR.

@StephanTLavavej StephanTLavavej moved this from Initial Review to Ready To Merge in STL Code Reviews Nov 24, 2025
@StephanTLavavej StephanTLavavej moved this from Ready To Merge to Merging in STL Code Reviews Nov 25, 2025
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

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

Labels

chrono C++20 chrono LWG Library Working Group issue

Projects

Status: Merging

3 participants