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 63acc50 commit 2d3d01a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Octree/include/CGAL/Octree.h
Expand Up @@ -514,7 +514,7 @@ class Octree {
* \param rhs tree to compare with
* \return whether the trees have the same topology
*/
bool operator==(const Octree<Point_range, Point_map> &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)
Expand All @@ -533,7 +533,7 @@ class Octree {
* \param rhs tree to compare with
* \return whether the trees have different topology
*/
bool operator!=(const Octree<Point_range, Point_map> &rhs) const {
bool operator!=(const Self &rhs) const {
return !operator==(rhs);
}

Expand Down

0 comments on commit 2d3d01a

Please sign in to comment.