Skip to content

Commit

Permalink
Use Self typedef in equality operators
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonCampolattaro committed Aug 14, 2020
1 parent 2d3d01a commit ca61bc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Octree/include/CGAL/Octree/Node.h
Expand Up @@ -448,7 +448,7 @@ class Node {
* \param rhs node to compare with
* \return whether the nodes have different topology
*/
bool operator==(const Node &rhs) const {
bool operator==(const Self &rhs) const {

// TODO: Should I compare the values they contain
// if (m_points != rhs.m_points)
Expand Down Expand Up @@ -482,7 +482,7 @@ class Node {
* \param rhs node to compare with
* \return whether the trees have different topology
*/
bool operator!=(const Node &rhs) const {
bool operator!=(const Self &rhs) const {
return !operator==(rhs);
}

Expand Down

0 comments on commit ca61bc2

Please sign in to comment.