From bd8ce6fabd8809223e8b2e4e8985f8bc6857d8e3 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Thu, 31 Mar 2022 13:51:09 +0200 Subject: [PATCH] Follow-up to 9cb51caead9dee5c4d12a4ef5f925b5efeb00b75 Fixing compilation on GCC --- src/libslic3r/Point.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); }