diff options
Diffstat (limited to 'src/Bottleneck_distance/include/gudhi/CGAL/Kd_tree.h')
-rw-r--r-- | src/Bottleneck_distance/include/gudhi/CGAL/Kd_tree.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/Bottleneck_distance/include/gudhi/CGAL/Kd_tree.h b/src/Bottleneck_distance/include/gudhi/CGAL/Kd_tree.h index 16043b76..dbdf5259 100644 --- a/src/Bottleneck_distance/include/gudhi/CGAL/Kd_tree.h +++ b/src/Bottleneck_distance/include/gudhi/CGAL/Kd_tree.h @@ -389,13 +389,10 @@ public: return; } #endif - // This does not actually remove points, and further insertions - // would make the points reappear, so we disallow it. - removed_ = true; - - CGAL_assertion_code(bool success = ) - remove_(p, 0, false, 0, false, root(), equal); + bool success = remove_(p, 0, false, 0, false, root(), equal_to_p); CGAL_assertion(success); + + removed_ |= success; } private: template<class Equal> |