diff options
author | Gard Spreemann <gspreemann@gmail.com> | 2018-06-15 12:34:03 +0200 |
---|---|---|
committer | Gard Spreemann <gspreemann@gmail.com> | 2018-06-15 12:34:03 +0200 |
commit | 41482b4260b4aff3d6803e340d5c94fbefb9af67 (patch) | |
tree | 89eae43dcb3fd4ab040e96f3d5479427d8cd2c7f /include/gudhi/Tangential_complex.h | |
parent | 41a1b8c2728e212c832c0384c8bb424139a247cf (diff) | |
parent | c524232f734de875d69e2f190f01a6c976024368 (diff) |
Merge branch 'upstream/latest' into dfsg/latest
Diffstat (limited to 'include/gudhi/Tangential_complex.h')
-rw-r--r-- | include/gudhi/Tangential_complex.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/gudhi/Tangential_complex.h b/include/gudhi/Tangential_complex.h index 6f061922..9d8fdcd3 100644 --- a/include/gudhi/Tangential_complex.h +++ b/include/gudhi/Tangential_complex.h @@ -4,7 +4,7 @@ * * Author(s): Clement Jamin * - * Copyright (C) 2016 INRIA + * Copyright (C) 2016 Inria * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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(); |