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

<cmath>: std::isnan missing IntegralType overload #3400

Closed
MathiasMagnus opened this issue Feb 10, 2023 · 1 comment
Closed

<cmath>: std::isnan missing IntegralType overload #3400

MathiasMagnus opened this issue Feb 10, 2023 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@MathiasMagnus
Copy link

Describe the bug
std::isnan is supposed to have an overload for all integral types. The lack of this overload triggers C2668 when called using an unsigned short.

Godbolt

Expected behavior
Call proper overload (casting to double).

STL version

Microsoft Visual Studio Build Tools 2022
Version 17.4.4
@frederick-vs-ja
Copy link
Contributor

Duplicate of #519

This is LWG-1327 which is #resolved in C++11. Unfortunately, the overloads are currently provided in UCRT, and a complete resolution cannot be achieved in this repo.

@StephanTLavavej StephanTLavavej added bug Something isn't working duplicate This issue or pull request already exists labels Feb 10, 2023
@StephanTLavavej StephanTLavavej closed this as not planned Won't fix, can't repro, duplicate, stale Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants