diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-10-03 13:21:28 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-10-03 13:21:28 +0000 |
commit | 8b1e2bed3fe242003cb7200ab6099925537d8bab (patch) | |
tree | 2b7ba03a0fda19994ace0d2a2ece1f617b46ce86 /src/Alpha_complex | |
parent | f9b1bc43d775a9d3a608fb62fe40b559a2cb5d25 (diff) |
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
Diffstat (limited to 'src/Alpha_complex')
-rw-r--r-- | src/Alpha_complex/include/gudhi/Alpha_complex.h | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |