From 155f5ac929374a666dd87df2e8b876569a2c3c43 Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Wed, 6 Jun 2018 21:15:12 +0000 Subject: Merge tangential complex warning fix git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@3551 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 252954186a69fa338f79f6e057845e8b5d8a9619 --- src/Tangential_complex/include/gudhi/Tangential_complex.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Tangential_complex/include/gudhi/Tangential_complex.h') diff --git a/src/Tangential_complex/include/gudhi/Tangential_complex.h b/src/Tangential_complex/include/gudhi/Tangential_complex.h index d8356520..9d8fdcd3 100644 --- a/src/Tangential_complex/include/gudhi/Tangential_complex.h +++ b/src/Tangential_complex/include/gudhi/Tangential_complex.h @@ -1100,7 +1100,10 @@ class Tangential_complex { // of the sphere "star sphere" centered at "center_vertex" // and which contains all the // circumspheres of the star of "center_vertex" - boost::optional squared_star_sphere_radius_plus_margin; + boost::optional squared_star_sphere_radius_plus_margin = boost::make_optional(false, FT()); + // This is the strange way boost is recommending to get rid of "may be used uninitialized in this function". + // Former code was : + // boost::optional squared_star_sphere_radius_plus_margin; // Insert points until we find a point which is outside "star sphere" for (auto nn_it = ins_range.begin(); -- cgit v1.2.3