Skip to content

Commit

Permalink
Adjust destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Apr 8, 2024
1 parent fd11246 commit 48c1744
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ AbstractTree<ElementType, DerivedType>::AbstractTree()
template <typename ElementType, typename DerivedType>
AbstractTree<ElementType, DerivedType>::~AbstractTree()
{
clear();
doForAllNodes ([] (Node& node)
{ node.~Node(); });
}

template <typename ElementType, typename DerivedType>
Expand Down

0 comments on commit 48c1744

Please sign in to comment.