Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 129f8d6c93
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (15 sloc) 0.35 kb
#include <cassert>
#include <limits>
#include <cmath>
#ifdef VSMC_USE_STD_ISFINITE
using std::isfinite;
#elif defined(VSMC_USE_BOOST_ISFINITE)
#include <boost/math/special_functions/fpclassify.hpp>
using boost::math::isfinite;
#endif
int main ()
{
double x = std::numeric_limits<double>::infinity();
assert(!isfinite(x));
return 0;
}
Jump to Line
Something went wrong with that request. Please try again.