diff --git a/src/libslic3r/Point.hpp b/src/libslic3r/Point.hpp index 8279a377e..26ff59226 100644 --- a/src/libslic3r/Point.hpp +++ b/src/libslic3r/Point.hpp @@ -104,8 +104,8 @@ template inline double angle(const Eigen::MatrixBase &v1, const Eigen::MatrixBase &v2) { static_assert(Derived::IsVectorAtCompileTime && int(Derived::SizeAtCompileTime) == 2, "angle(): first parameter is not a 2D vector"); static_assert(Derived2::IsVectorAtCompileTime && int(Derived2::SizeAtCompileTime) == 2, "angle(): second parameter is not a 2D vector"); - auto v1d = v1.cast(); - auto v2d = v2.cast(); + auto v1d = v1.typename cast(); + auto v2d = v2.typename cast(); return atan2(cross2(v1d, v2d), v1d.dot(v2d)); }