diff --git a/Eigen/src/Cholesky/LDLT.h b/Eigen/src/Cholesky/LDLT.h index a5e3d5469..fb15084c5 100644 --- a/Eigen/src/Cholesky/LDLT.h +++ b/Eigen/src/Cholesky/LDLT.h @@ -370,7 +370,7 @@ template<> struct ldlt_inplace for (Index j = 0; j < size; j++) { // Check for termination due to an original decomposition of low-rank - if (!isfinite(alpha)) + if (!(isfinite)(alpha)) break; // Update the diagonal terms diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index ab153c1eb..f73e09af2 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -845,7 +845,7 @@ template<> struct scalar_fuzzy_impl // std::isfinite is non standard, so let's define our own version, // even though it is not very efficient. -template bool isfinite(const T& x) +template bool (isfinite)(const T& x) { return x::highest() && x>NumTraits::lowest(); }