Skip to content
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

<chrono>: chrono::abs incorrectly uses ?: with expressions that don't always have a common type #2988

Merged
merged 1 commit into from
Aug 5, 2022

Conversation

CaseyCarter
Copy link
Member

...by avoiding ill-formed uses of the conditional operator in std::chrono::abs.

Fixes #2839

...by avoiding ill-formed uses of the conditional operator in `std::chrono::abs`.

Fixes microsoft#2839
@CaseyCarter CaseyCarter added the bug Something isn't working label Aug 3, 2022
@CaseyCarter CaseyCarter requested a review from a team as a code owner August 3, 2022 19:32
@CaseyCarter CaseyCarter mentioned this pull request Aug 3, 2022
@StephanTLavavej StephanTLavavej added the chrono C++20 chrono label Aug 3, 2022
@CaseyCarter CaseyCarter changed the title Fix the bug that we thought was LWG-3741 <chrono>: chrono::abs incorrectly uses ?: with expressions that don't always have a common type Aug 3, 2022
@StephanTLavavej StephanTLavavej self-assigned this Aug 5, 2022
@StephanTLavavej
Copy link
Member

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

@StephanTLavavej StephanTLavavej merged commit 1fe625d into microsoft:main Aug 5, 2022
@StephanTLavavej
Copy link
Member

Thanks for investigating and fixing this bug in time itself! 🕥 😹 🎉

strega-nil pushed a commit to strega-nil/stl that referenced this pull request Aug 6, 2022
@CaseyCarter CaseyCarter deleted the lwg-3741 branch August 9, 2022 16:48
fsb4000 pushed a commit to fsb4000/STL that referenced this pull request Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working chrono C++20 chrono
Projects
None yet
Development

Successfully merging this pull request may close these issues.

<chrono>: abs(duration) requires a duration with reduced period
3 participants
  翻译: