IsNaN now uses std::isnan function