summaryrefslogtreecommitdiff
path: root/src/Simplex_tree/include
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-10-19 20:35:41 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-10-19 20:35:41 +0000
commit4e3cf64d56874353aea48ccc1820069bbf37671a (patch)
treea37d4a87cb4a262d4a2b14d3a939832cfb5d8f92 /src/Simplex_tree/include
parent479bcccbaede8aa59ae28c8cd9b15de08053a817 (diff)
Code review : remove template specification for std::max
Fix cython tests accordingly to the other modifications git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/ST_automatic_dimension_set@2794 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: e1009a3304455fa26fbd368c4cce4451bc3d7784
Diffstat (limited to 'src/Simplex_tree/include')
-rw-r--r--src/Simplex_tree/include/gudhi/Simplex_tree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Simplex_tree/include/gudhi/Simplex_tree.h b/src/Simplex_tree/include/gudhi/Simplex_tree.h
index 8a827086..a2febe54 100644
--- a/src/Simplex_tree/include/gudhi/Simplex_tree.h
+++ b/src/Simplex_tree/include/gudhi/Simplex_tree.h
@@ -1202,7 +1202,7 @@ class Simplex_tree {
*/
bool automatic_dimension_set() {
int new_dimension = -1;
- // Browse the tree from te left to the right as higher dimension cells are more likely on the left part of the tree
+ // Browse the tree from the left to the right as higher dimension cells are more likely on the left part of the tree
for (Simplex_handle sh : skeleton_simplex_range(dimension_)) {
#ifdef DEBUG_TRACES
for (auto vertex : simplex_vertex_range(sh)) {
@@ -1215,7 +1215,7 @@ class Simplex_tree {
if (sh_dimension >= dimension_)
// Stop browsing as soon as the dimension is reached, no need to go furter
return false;
- new_dimension = std::max<int>(new_dimension, sh_dimension);
+ new_dimension = std::max(new_dimension, sh_dimension);
}
dimension_ = new_dimension;
return true;