From 66d91feb5c6491b24e0765af777e35162e4cdc31 Mon Sep 17 00:00:00 2001 From: salinasd Date: Sat, 4 Jul 2015 15:41:57 +0000 Subject: Fix skbl compiling issue on clang + one issue of returning a local reference in Alpha_shapes git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/compil_fix@677 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: b14047d0df46ea255bb801191c6672aa06eab3c7 --- src/Contraction/example/Garland_heckbert/Error_quadric.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Contraction/example/Garland_heckbert') diff --git a/src/Contraction/example/Garland_heckbert/Error_quadric.h b/src/Contraction/example/Garland_heckbert/Error_quadric.h index 725a3a56..72134c9d 100644 --- a/src/Contraction/example/Garland_heckbert/Error_quadric.h +++ b/src/Contraction/example/Garland_heckbert/Error_quadric.h @@ -122,7 +122,7 @@ public : * Return the point such that it minimizes the gradient of the quadric. * Det must be passed with the determinant value of the gradient (should be non zero). */ - inline Point solve_linear_gradient(double det = grad_determinant()) const{ + inline Point solve_linear_gradient(double det) const{ return Point({ (-coeff[1]*coeff[5]*coeff[8]+coeff[1]*coeff[7]*coeff[6]+coeff[2]*coeff[8]*coeff[4]-coeff[2]*coeff[5]*coeff[6]-coeff[3]*coeff[4]*coeff[7]+coeff[3]*coeff[5]*coeff[5])/ det, (coeff[0]*coeff[5]*coeff[8]-coeff[0]*coeff[7]*coeff[6]-coeff[5]*coeff[2]*coeff[3]-coeff[1]*coeff[2]*coeff[8]+coeff[6]*coeff[2]*coeff[2]+coeff[1]*coeff[3]*coeff[7])/det, -- cgit v1.2.3