From 9b6d34c238d6d8236df3ec767b207eaa3dd0d9f4 Mon Sep 17 00:00:00 2001 From: 133470 Date: Fri, 5 Jan 2018 14:58:44 +1100 Subject: [PATCH] removed ambiguos call to lambda function compiler errors --- vcg/complex/algorithms/parametrization/distortion.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vcg/complex/algorithms/parametrization/distortion.h b/vcg/complex/algorithms/parametrization/distortion.h index c4dc65ba..903d8553 100644 --- a/vcg/complex/algorithms/parametrization/distortion.h +++ b/vcg/complex/algorithms/parametrization/distortion.h @@ -397,9 +397,9 @@ public: { int folded=0; - ForEachFace(m, [&](const FaceType &f){ + ForEachFace(m, std::function([&folded](const FaceType &f){ if(IsFolded(&f)) folded++; - }); + })); return folded; } @@ -413,9 +413,9 @@ public: static ScalarType MeshAngleDistortion(const MeshType &m) { ScalarType UDdist=0; - ForEachFace(m, [&](const FaceType &f){ + ForEachFace(m, std::function([&UDdist](const FaceType &f){ UDdist += AngleDistortion(f)*Area3D(f); - }); + })); return UDdist; }