#include <cmath> bool foo(double arg) { return std::isfinite(arg); }