By using type traits, I can find out whether a type is integral or a pointer (and more). Is it also possible to find out whether the pointer being passed is that of an integral data type (int, float, char) and not an object?
EDIT: In addition to Armen’s answer, if anybody is using the LOKI library instead of Boost, the functionality of remove pointer is similar to TypeTraits::PointeeType
Btw
floatis not integral. You probably needis_arithmetic