transition to std::isnan which is now in C++