Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mtezych
Copy link
Contributor

@mtezych mtezych commented Dec 15, 2022

Hello,

I've noticed that the MSVC's STL provides std::numeric_limits template specialization
for the std::_Signed128 (a type which models the signed-integer-class concept) slightly incorrectly,
that is the std::numeric_limits<std::_Signed128>::is_signed is false instead of true:

This change fixes that issue and adds a couple of compile-time checks
verifying that the std::numeric_limits<std::_Signed128> is properly specialized.

@mtezych mtezych requested a review from a team as a code owner December 15, 2022 23:10
@CaseyCarter CaseyCarter added the bug Something isn't working label Dec 15, 2022
Copy link
Contributor

@CaseyCarter CaseyCarter left a comment

Choose a reason for hiding this comment

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

Thanks for fixing my mistake!

Copy link
Contributor

@strega-nil-ms strega-nil-ms left a comment

Choose a reason for hiding this comment

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

Thanks for noticing!

@mtezych
Copy link
Contributor Author

mtezych commented Dec 16, 2022

@microsoft-github-policy-service agree

@StephanTLavavej StephanTLavavej self-assigned this Jan 11, 2023
@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 1b7ab6e into microsoft:main Jan 11, 2023
@StephanTLavavej
Copy link
Member

Thanks for fixing this bug, and congratulations on your first microsoft/STL commit! 🎉 😻 🚀

This will ship in VS 2022 17.6 Preview 2.

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants