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

has_denorm_now #1029

Merged
merged 3 commits into from
Oct 30, 2023
Merged

has_denorm_now #1029

merged 3 commits into from
Oct 30, 2023

Conversation

ryanelandt
Copy link
Contributor

As pointed out in #1028, std::numeric_limits<T>::has_denorm has been deprecated in C++23.

This PR refactors get_smallest_value to no longer use has_denorm. A new method has_denorm_now is created that checks if denorms are supported at runtime by comparing the output of boost::math::detail::get_smallest_value with that of boost::math::tools::min_value. Most other instances of the compile time constant has_denorm are replaced by the runtime calculated version has_denorm_now.

@jzmaddock
Copy link
Collaborator

Thanks Matt, this looks good to me! Any reason not to merge?

@mborland mborland merged commit 2c74b14 into boostorg:develop Oct 30, 2023
56 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.

3 participants