0
0
mirror of https://gitlab.com/libeigen/eigen.git synced 2026-01-18 17:31:19 +01:00

Make hypot_impl compile again for types with expression-templates (e.g., boost::multiprecision)

This commit is contained in:
Christoph Hertzberg
2018-04-13 19:01:37 +02:00
parent 4662c610c1
commit 385d8b5e42

View File

@@ -90,7 +90,7 @@ struct hypot_impl
static inline RealScalar run(const Scalar& x, const Scalar& y) static inline RealScalar run(const Scalar& x, const Scalar& y)
{ {
EIGEN_USING_STD_MATH(abs); EIGEN_USING_STD_MATH(abs);
return positive_real_hypot(abs(x), abs(y)); return positive_real_hypot<RealScalar>(abs(x), abs(y));
} }
}; };