Skip to content

Commit

Permalink
Use const ref to function pointer for node iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Jun 30, 2020
1 parent 52cfccd commit 9cc5fd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Octree/include/CGAL/Octree.h
Expand Up @@ -85,7 +85,8 @@ namespace CGAL {

const_iterator() : m_node(0) {}

const_iterator(const Node *p, std::function<const Node *(const Node *)> next) : m_node(p), m_next(next) {}
const_iterator(const Node *p, const std::function<const Node *(const Node *)> &next) : m_node(p),
m_next(next) {}

const_iterator(const_iterator const &other) : m_node(other.m_node), m_next(other.m_next) {}

Expand Down

0 comments on commit 9cc5fd1

Please sign in to comment.