Fix uncaught exception in K3_tree.h

This commit is contained in:
Giles Bathgate 2020-11-28 14:25:25 +00:00
parent 78bbe15325
commit 96024d1bb1
1 changed files with 13 additions and 7 deletions

View File

@ -442,12 +442,15 @@ friend std::ostream& operator<<
}
~Node() {
~Node() CGAL_NOEXCEPT(CGAL_NO_ASSERTIONS_BOOL)
{
CGAL_NEF_TRACEN("~Node: deleting node...");
CGAL_destructor_assertion_catch(
if( !is_leaf()) {
delete left_node;
delete right_node;
}
);
}
private:
@ -1103,9 +1106,12 @@ bool update( Node* node,
return (left_updated || right_updated);
}
~K3_tree() {
~K3_tree() CGAL_NOEXCEPT(CGAL_NO_ASSERTIONS_BOOL)
{
CGAL_NEF_TRACEN("~K3_tree: deleting root...");
CGAL_destructor_assertion_catch(
delete root;
);
}
private: