From 385d8b5e42c2e4f28de09e6e3fbc77b3b76bd51f Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Fri, 13 Apr 2018 19:01:37 +0200 Subject: [PATCH] Make hypot_impl compile again for types with expression-templates (e.g., boost::multiprecision) --- Eigen/src/Core/MathFunctionsImpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/MathFunctionsImpl.h b/Eigen/src/Core/MathFunctionsImpl.h index b807406de..9c1ceb0eb 100644 --- a/Eigen/src/Core/MathFunctionsImpl.h +++ b/Eigen/src/Core/MathFunctionsImpl.h @@ -90,7 +90,7 @@ struct hypot_impl static inline RealScalar run(const Scalar& x, const Scalar& y) { EIGEN_USING_STD_MATH(abs); - return positive_real_hypot(abs(x), abs(y)); + return positive_real_hypot(abs(x), abs(y)); } };