diff --git a/Octree/include/CGAL/Octree.h b/Octree/include/CGAL/Octree.h index d7a384d3acc..e57c2ed4f0a 100644 --- a/Octree/include/CGAL/Octree.h +++ b/Octree/include/CGAL/Octree.h @@ -514,7 +514,7 @@ class Octree { * \param rhs tree to compare with * \return whether the trees have the same topology */ - bool operator==(const Octree &rhs) const { + bool operator==(const Self &rhs) const { // Identical trees should have the same bounding box if (rhs.m_bbox_min != m_bbox_min || rhs.m_bbox_side != m_bbox_side) @@ -533,7 +533,7 @@ class Octree { * \param rhs tree to compare with * \return whether the trees have different topology */ - bool operator!=(const Octree &rhs) const { + bool operator!=(const Self &rhs) const { return !operator==(rhs); }