Math functions in C++11 require an explicit cast before calling them, an ambiguous function overload error is thrown otherwise.
Relevant docs:
https://msdn.microsoft.com/en-us/library/da60x087.aspx#code-snippet-4
http://en.cppreference.com/w/cpp/numeric/math/isfinite