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

Implement P2614R2 Deprecating float_denorm_style, numeric_limits::has_denorm, numeric_limits::has_denorm_loss #3482

Merged
merged 20 commits into from Apr 20, 2023

Conversation

frederick-vs-ja
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja commented Feb 20, 2023

Fixes #3442.

I wanted to implement WG21-P2614R2 and LWG-3869 together to avoid conflict on warning numbers, but #pragma warning(disable : 4996) didn't work in modules (fixed in 17.6 Preview 3). Edit: Separated to #3487.

It seems meaningful to apply the deprecation to older modes, since the changes in the upstream standard IEEE 754-2008 predated C++11. Edit: The original thought doesn't seem right.

Drive-by change: remove the inclusion dependency of <limits> on <cwchar>, which may slightly improve compiler throughput. Edit: Separated to #3631.

@frederick-vs-ja frederick-vs-ja requested a review from a team as a code owner February 20, 2023 02:37
@github-actions github-actions bot added this to Initial Review in Code Reviews Feb 20, 2023
@frederick-vs-ja

This comment was marked as resolved.

@frederick-vs-ja frederick-vs-ja changed the title Implement P2614R2 Deprecating float_denorm_style, numeric_limits::has_denorm, numeric_limits::has_denorm_loss and LWG-3869 Deprecate std::errc constants related to UNIX STREAMS Implement P2614R2 Deprecating float_denorm_style, numeric_limits::has_denorm, numeric_limits::has_denorm_loss Feb 20, 2023
@CaseyCarter CaseyCarter added the cxx23 C++23 feature label Feb 20, 2023
stl/inc/limits Outdated Show resolved Hide resolved
stl/inc/limits Outdated Show resolved Hide resolved
Code Reviews automation moved this from Initial Review to Work In Progress Feb 21, 2023
stl/inc/yvals_core.h Outdated Show resolved Hide resolved
stl/inc/yvals_core.h Outdated Show resolved Hide resolved
@StephanTLavavej StephanTLavavej added the blocked Something is preventing work on this label Feb 22, 2023
@StephanTLavavej StephanTLavavej moved this from Work In Progress to Blocked in Code Reviews Feb 22, 2023
@frederick-vs-ja frederick-vs-ja marked this pull request as draft April 5, 2023 07:27
@StephanTLavavej

This comment was marked as resolved.

@StephanTLavavej StephanTLavavej removed the blocked Something is preventing work on this label Apr 14, 2023
@StephanTLavavej StephanTLavavej moved this from Blocked to Work In Progress in Code Reviews Apr 14, 2023
@StephanTLavavej

This comment was marked as resolved.

@frederick-vs-ja frederick-vs-ja marked this pull request as ready for review April 14, 2023 05:09
@StephanTLavavej StephanTLavavej moved this from Work In Progress to Initial Review in Code Reviews Apr 14, 2023
@StephanTLavavej StephanTLavavej moved this from Initial Review to Final Review in Code Reviews Apr 14, 2023
stl/inc/limits Show resolved Hide resolved
Code Reviews automation moved this from Final Review to Work In Progress Apr 20, 2023
@StephanTLavavej StephanTLavavej moved this from Work In Progress to Final Review in Code Reviews Apr 20, 2023
@StephanTLavavej StephanTLavavej self-assigned this Apr 20, 2023
@StephanTLavavej
Copy link
Member

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

@barcharcraz barcharcraz moved this from Final Review to Ready To Merge in Code Reviews Apr 20, 2023
@barcharcraz barcharcraz removed their assignment Apr 20, 2023
@StephanTLavavej StephanTLavavej merged commit 522149c into microsoft:main Apr 20, 2023
35 checks passed
Code Reviews automation moved this from Ready To Merge to Done Apr 20, 2023
@StephanTLavavej
Copy link
Member

Thanks for implementing these C++23 deprecations and helping users improve their code! 🚀 ✅ 😸

@frederick-vs-ja frederick-vs-ja deleted the deprecate-23 branch April 20, 2023 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cxx23 C++23 feature
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

P2614R2 Deprecating float_denorm_style, numeric_limits::has_denorm, numeric_limits::has_denorm_loss
4 participants