From 352f1422d3ceea19a04cab297c6339e0870e1c6c Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Tue, 12 Jan 2021 10:33:15 -0800 Subject: Remove `inf` local variable. Apparently `inf` is a macro on iOS for `std::numeric_limits::infinity()`, causing a compile error here. We don't need the local anyways since it's only used in one spot. --- Eigen/src/Core/MathFunctionsImpl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Eigen/src/Core/MathFunctionsImpl.h') diff --git a/Eigen/src/Core/MathFunctionsImpl.h b/Eigen/src/Core/MathFunctionsImpl.h index 8ecddebf6..9222285b4 100644 --- a/Eigen/src/Core/MathFunctionsImpl.h +++ b/Eigen/src/Core/MathFunctionsImpl.h @@ -132,8 +132,7 @@ EIGEN_DEVICE_FUNC std::complex complex_sqrt(const std::complex& z) { // Special case of isinf(y) if ((numext::isinf)(y)) { - const T inf = std::numeric_limits::infinity(); - return std::complex(inf, y); + return std::complex(std::numeric_limits::infinity(), y); } T w = numext::sqrt(cst_half * (numext::abs(x) + numext::abs(z))); -- cgit v1.2.3