From 8b1e2bed3fe242003cb7200ab6099925537d8bab Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Mon, 3 Oct 2016 13:21:28 +0000 Subject: get_point can return a const Point& git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/alpha_complex_create_complex@1606 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 44cec97d381409fdc2a707300c2fe93c67428e09 --- src/Alpha_complex/include/gudhi/Alpha_complex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Alpha_complex') diff --git a/src/Alpha_complex/include/gudhi/Alpha_complex.h b/src/Alpha_complex/include/gudhi/Alpha_complex.h index b0c09b88..cda40021 100644 --- a/src/Alpha_complex/include/gudhi/Alpha_complex.h +++ b/src/Alpha_complex/include/gudhi/Alpha_complex.h @@ -168,7 +168,7 @@ class Alpha_complex { * @return The point found. * @exception std::out_of_range In case vertex is not found (cf. std::vector::at). */ - Point_d get_point(std::size_t vertex) const { + const Point_d& get_point(std::size_t vertex) const { return vertex_handle_to_iterator_.at(vertex)->point(); } -- cgit v1.2.3