summaryrefslogtreecommitdiff
path: root/src/Tangential_complex/include/gudhi/Tangential_complex.h
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-06-06 21:15:12 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2018-06-06 21:15:12 +0000
commit155f5ac929374a666dd87df2e8b876569a2c3c43 (patch)
tree3ff4f273e758b93843167d17a0f6e86639a50ed9 /src/Tangential_complex/include/gudhi/Tangential_complex.h
parent0690b9d09d6c47e5c2e12f0ed38a2ce01fc8da76 (diff)
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
Diffstat (limited to 'src/Tangential_complex/include/gudhi/Tangential_complex.h')
-rw-r--r--src/Tangential_complex/include/gudhi/Tangential_complex.h5
1 files changed, 4 insertions, 1 deletions
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<FT> squared_star_sphere_radius_plus_margin;
+ boost::optional<FT> 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<FT> 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();