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>: floating-point classification functions are ambiguous for integer types #908

Closed
frederick-vs-ja opened this issue Jun 18, 2020 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@frederick-vs-ja
Copy link
Contributor

Currently calling a floating-point classification/comparison function in <cmath> with an integer value as argument such as std::isnan(42) is ambiguous. And the standard says that sufficient overloads are provided for integer types ([cmath.syn]/2, at least since N3337), so the ambiguity should be resolved.

Overloads of other <cmath> functions for integer types are handled in <cmath>. So overloads of these functions should also be handled in this header.

@CaseyCarter CaseyCarter added the bug Something isn't working label Jun 18, 2020
@StephanTLavavej StephanTLavavej added the duplicate This issue or pull request already exists label Jun 21, 2020
@StephanTLavavej
Copy link
Member

Duplicate of #519.

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