From 4d392d93aaf35447dff7b4522dcf587e49a44b8f Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Fri, 13 Apr 2018 19:01:37 +0200 Subject: 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(-) (limited to 'Eigen/src/Core/MathFunctionsImpl.h') diff --git a/Eigen/src/Core/MathFunctionsImpl.h b/Eigen/src/Core/MathFunctionsImpl.h index cc2ac0700..28737c15e 100644 --- a/Eigen/src/Core/MathFunctionsImpl.h +++ b/Eigen/src/Core/MathFunctionsImpl.h @@ -85,7 +85,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)); } }; -- cgit v1.2.3