From e0d13ead906cf053af30ee2ae8dcc45713377f82 Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Sat, 23 Jan 2021 11:02:35 -0800 Subject: Replace std::isnan with numext::isnan for c++03 --- test/array_cwise.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/array_cwise.cpp b/test/array_cwise.cpp index 6ea504c09..4c6055c19 100644 --- a/test/array_cwise.cpp +++ b/test/array_cwise.cpp @@ -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; -- cgit v1.2.3