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 072e111ec0
commit 4d392d93aa

View File

@ -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<RealScalar>(abs(x), abs(y));
}
};