mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-18 14:34:17 +08:00
Make hypot_impl compile again for types with expression-templates (e.g., boost::multiprecision)
This commit is contained in:
parent
072e111ec0
commit
4d392d93aa
@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user