summaryrefslogtreecommitdiff
path: root/src/Simplex_tree
diff options
context:
space:
mode:
Diffstat (limited to 'src/Simplex_tree')
-rw-r--r--src/Simplex_tree/include/gudhi/Simplex_tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Simplex_tree/include/gudhi/Simplex_tree.h b/src/Simplex_tree/include/gudhi/Simplex_tree.h
index f48dd048..ff6ffa67 100644
--- a/src/Simplex_tree/include/gudhi/Simplex_tree.h
+++ b/src/Simplex_tree/include/gudhi/Simplex_tree.h
@@ -1129,7 +1129,7 @@ class Simplex_tree {
bool to_be_inserted = true;
Filtration_value filt = simplex->second.filtration();
// If all the boundaries are present, 'next' needs to be inserted
- for (auto& border : boundary_simplex_range(simplex)) {
+ for (Simplex_handle border : boundary_simplex_range(simplex)) {
Simplex_handle border_child = find_child(border, next->first);
if (border_child == null_simplex()) {
to_be_inserted=false;