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
@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
stl/inc/yvals_core.h Outdated Show resolved Hide resolved
stl/inc/yvals_core.h Outdated Show resolved Hide resolved
@StephanTLavavej

This comment was marked as resolved.

@StephanTLavavej StephanTLavavej removed the blocked Something is preventing work on this label 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
stl/inc/limits Show resolved Hide resolved
@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 removed their assignment Apr 20, 2023
@StephanTLavavej StephanTLavavej merged commit 522149c into microsoft:main 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
None yet
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