Switch from std::isnan to boost::math::isnan #378