From d21f42883132d45280a5af5d91b8e0d4d4b6b281 Mon Sep 17 00:00:00 2001 From: Jackson Campolattaro Date: Mon, 17 Aug 2020 11:52:59 -0400 Subject: [PATCH] Use max_depth_reached() to get depth in equality operator --- Octree/include/CGAL/Octree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Octree/include/CGAL/Octree.h b/Octree/include/CGAL/Octree.h index 782a5ac5e21..cffdd761616 100644 --- a/Octree/include/CGAL/Octree.h +++ b/Octree/include/CGAL/Octree.h @@ -531,7 +531,7 @@ class Octree { return false; // Identical trees should have the same depth - if (rhs.m_max_depth_reached != m_max_depth_reached) + if (rhs.max_depth_reached() != max_depth_reached()) return false; // If all else is equal, recursively compare the trees themselves