Skip to content

Commit

Permalink
Make destructors protected
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Jan 20, 2025
1 parent b3c02d2 commit 7194411
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gtsam/inference/ClusterTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ class ClusterTree {

/// @}

protected:
~ClusterTree();

protected:
/// @name Details
/// @{

Expand Down
4 changes: 3 additions & 1 deletion gtsam/inference/EliminationTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ namespace gtsam {

/// @}

public:
protected:
~EliminationTree();

public:
/// @name Standard Interface
/// @{

Expand Down

0 comments on commit 7194411

Please sign in to comment.