Use std::isnan to resolve ambiguity.