diff --git a/gtsam/symbolic/tests/testSymbolicEliminationTree.cpp b/gtsam/symbolic/tests/testSymbolicEliminationTree.cpp index 2b7ab6e82..cb370f553 100644 --- a/gtsam/symbolic/tests/testSymbolicEliminationTree.cpp +++ b/gtsam/symbolic/tests/testSymbolicEliminationTree.cpp @@ -31,6 +31,9 @@ using namespace gtsam::symbol_shorthand; using namespace std; using sharedNode = SymbolicEliminationTree::sharedNode; +// Use list_of replacement defined in symbolicExampleGraphs.h +using ChildNodes = ChainedVector; + class EliminationTreeTester { public: // build hardcoded tree @@ -65,8 +68,7 @@ class EliminationTreeTester { return tree; } - static SymbolicEliminationTree MakeTree( - const std::vector& roots) { + static SymbolicEliminationTree MakeTree(const ChildNodes::Result& roots) { SymbolicEliminationTree et; et.roots_.assign(roots.begin(), roots.end()); return et; @@ -81,9 +83,6 @@ static sharedNode Leaf(Key key, const SymbolicFactorGraph& factors) { return node; } -// Use list_of replacement defined in symbolicExampleGraphs.h -using ChildNodes = ChainedVector; - // Create a node with children. static sharedNode Node(Key key, const SymbolicFactorGraph& factors, const ChildNodes::Result& children) {