From bfb9288df6480ec5b0303b86fefbafd847c3a54b Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 29 Apr 2019 16:59:31 +0200 Subject: [PATCH] Yet another template gymnastics --- src/admesh/stl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/admesh/stl.h b/src/admesh/stl.h index 1fe7ab05a4..f867e197bd 100644 --- a/src/admesh/stl.h +++ b/src/admesh/stl.h @@ -218,8 +218,8 @@ inline void stl_transform(stl_file *stl, const Eigen::Transformstats.number_of_facets; ++i) { stl_facet &f = stl->facet_start[i]; for (size_t j = 0; j < 3; ++j) - f.vertex[j] = (t * f.vertex[j].cast()).cast().eval(); - f.normal = (r * f.normal.cast()).cast().eval(); + f.vertex[j] = (t * f.vertex[j].template cast()).template cast().eval(); + f.normal = (r * f.normal.template cast()).template cast().eval(); } stl_get_size(stl); @@ -234,8 +234,8 @@ inline void stl_transform(stl_file *stl, const Eigen::Matrixstats.number_of_facets; ++i) { stl_facet &f = stl->facet_start[i]; for (size_t j = 0; j < 3; ++j) - f.vertex[j] = (m * f.vertex[j].cast()).cast().eval(); - f.normal = (m * f.normal.cast()).cast().eval(); + f.vertex[j] = (m * f.vertex[j].template cast()).template cast().eval(); + f.normal = (m * f.normal.template cast()).template cast().eval(); } stl_get_size(stl);