Namespaces
Variants
Views
Actions

Talk:cpp/numeric/math/signbit

From cppreference.com

[edit] Integral overloads are not in standard.

The standard only lists 3 overloads for the function: one for `float`, `double`, and `long double`. No mention is made of overloads for integers. The C standard equivalent explicitly states that the macro only works for "real floating types".

C++ defines the integer overloads in cmath.syn/2. --Cubbi (talk) 21:34, 5 April 2017 (PDT)