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

Disable warnings from deprecated numeric_limits members. #575

Merged
merged 3 commits into from
Dec 8, 2023

Conversation

jzmaddock
Copy link
Collaborator

When building with MSVC in C++23 mode.
Fixes #573
Refs #574

When building with MSVC in C++23 mode.
static constexpr float_denorm_style has_denorm = denorm_absent;
#ifdef _MSC_VER
#pragma warning(pop)
#endif
static constexpr bool has_denorm_loss = false;
Copy link
Member

Choose a reason for hiding this comment

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

Do the instances of has_denorm_loss need to go in between the pragmas since it's deprecated as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't believe so... it's a simple bool so no warning is generated, it's our use of float_denorm_style that was causing the issue I believe.

@jzmaddock
Copy link
Collaborator Author

Single failure is a clone/network issue, merging...

@jzmaddock jzmaddock merged commit a32f657 into develop Dec 8, 2023
66 of 67 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

std::has_denorm/std::has_denorm_loss are deprecated in c++23
2 participants