isfinite() is available as std::isfinite() if it is included through <cmath>