summaryrefslogtreecommitdiff
path: root/src/Bottleneck_distance/include/gudhi/Persistence_diagrams_graph.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Bottleneck_distance/include/gudhi/Persistence_diagrams_graph.h')
-rw-r--r--src/Bottleneck_distance/include/gudhi/Persistence_diagrams_graph.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bottleneck_distance/include/gudhi/Persistence_diagrams_graph.h b/src/Bottleneck_distance/include/gudhi/Persistence_diagrams_graph.h
index e8a46f1c..52e7c583 100644
--- a/src/Bottleneck_distance/include/gudhi/Persistence_diagrams_graph.h
+++ b/src/Bottleneck_distance/include/gudhi/Persistence_diagrams_graph.h
@@ -154,9 +154,9 @@ inline Internal_point G::get_v_point(int v_point_index) {
inline double G::diameter() {
double max = 0.;
- for(it = u.cbegin(); it != u.cend(); it++)
+ for(auto it = u.cbegin(); it != u.cend(); it++)
max = std::max(max,it->y());
- for(it = v.cbegin(); it != v.cend(); it++)
+ for(auto it = v.cbegin(); it != v.cend(); it++)
max = std::max(max,it->y());
return max;
}