Replace std::isnan with numext::isnan for c++03

This commit is contained in:
Antonio Sanchez 2021-01-23 11:02:35 -08:00
parent c35965b381
commit e0d13ead90

View File

@ -54,7 +54,7 @@ void pow_test() {
for (int j = 0; j < num_cases; ++j) {
Scalar a = actual(i, j);
Scalar e = expected(i, j);
bool fail = !(a==e) && !internal::isApprox(a, e, tol) && !((std::isnan)(a) && (std::isnan)(e));
bool fail = !(a==e) && !internal::isApprox(a, e, tol) && !((numext::isnan)(a) && (numext::isnan)(e));
all_pass &= !fail;
if (fail) {
std::cout << "pow(" << x(i,j) << "," << y(i,j) << ") = " << a << " != " << e << std::endl;