From 2cb6a5648f6c4a21f83a41faad6b598bd0a02832 Mon Sep 17 00:00:00 2001 From: glisse Date: Wed, 16 Sep 2015 14:30:58 +0000 Subject: Filtration_simplex_iterator's reference type does not have to be a reference, and Simplex_handle has to be cheap anyway. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@789 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: a3fbf340b9ab3d2186616f14f4b96d3188dafd14 --- src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h b/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h index 4c818ffa..c6593cc4 100644 --- a/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h +++ b/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h @@ -243,7 +243,7 @@ class Persistent_cohomology { column_pool_(), // memory pools for the CAM cell_pool_() { Simplex_key idx_fil = 0; - for (auto & sh : cpx_->filtration_simplex_range()) { + for (auto sh : cpx_->filtration_simplex_range()) { cpx_->assign_key(sh, idx_fil); ++idx_fil; dsets_.make_set(cpx_->key(sh)); -- cgit v1.2.3