From 52ebc4ed1d6ffbfeddb9565aebdc099ec35f920d Mon Sep 17 00:00:00 2001 From: glisse Date: Wed, 16 Sep 2015 14:41:32 +0000 Subject: Fix 2 FIXMEs. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@790 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: a44798f1fcaa8d5992e5c7e56d3d13f11bfdb3e6 --- src/Simplex_tree/example/mini_simplex_tree.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/Simplex_tree') diff --git a/src/Simplex_tree/example/mini_simplex_tree.cpp b/src/Simplex_tree/example/mini_simplex_tree.cpp index 9c07f15f..08d626d3 100644 --- a/src/Simplex_tree/example/mini_simplex_tree.cpp +++ b/src/Simplex_tree/example/mini_simplex_tree.cpp @@ -20,8 +20,6 @@ * along with this program. If not, see . */ -// FIXME: remove the first include -#include #include #include #include @@ -51,15 +49,14 @@ int main() { /* o---o---o */ /* 2 0 3 */ - // FIXME: Replace std::vector with auto - std::vector triangle012 = {0, 1, 2}; - std::vector edge03 = {0, 3}; + auto triangle012 = {0, 1, 2}; + auto edge03 = {0, 3}; st.insert_simplex_and_subfaces(triangle012); st.insert_simplex_and_subfaces(edge03); // FIXME: Remove this line st.set_dimension(2); - std::vector edge02 = {0, 2}; + auto edge02 = {0, 2}; ST::Simplex_handle e = st.find(edge02); assert(st.filtration(e) == 0); // We are not using filtrations so everything has value 0 for(ST::Simplex_handle t : st.cofaces_simplex_range(e, 1)) // Only coface is 012 -- cgit v1.2.3