Fix compilation issue

release/4.3a0
Frank Dellaert 2025-01-27 23:41:35 -05:00
parent af07409c10
commit 460a9a958e
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ struct PrintForestVisitorPre {
void DiscreteJunctionTree::print(const std::string& s, void DiscreteJunctionTree::print(const std::string& s,
const KeyFormatter& keyFormatter) const { const KeyFormatter& keyFormatter) const {
PrintForestVisitorPre visitor(keyFormatter); PrintForestVisitorPre visitor(keyFormatter);
treeTraversal::DepthFirstForest(*this, std::string(s), visitor); std::string parentString = s;
treeTraversal::DepthFirstForest(*this, parentString, visitor);
} }
} // namespace gtsam } // namespace gtsam