diff --git a/gtsam/symbolic/tests/testSymbolicEliminationTree.cpp b/gtsam/symbolic/tests/testSymbolicEliminationTree.cpp index 9b750cfca..2b7ab6e82 100644 --- a/gtsam/symbolic/tests/testSymbolicEliminationTree.cpp +++ b/gtsam/symbolic/tests/testSymbolicEliminationTree.cpp @@ -73,6 +73,7 @@ class EliminationTreeTester { } }; +// Create a leaf node. static sharedNode Leaf(Key key, const SymbolicFactorGraph& factors) { sharedNode node(new SymbolicEliminationTree::Node()); node->key = key; @@ -80,16 +81,17 @@ 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 std::vector& children) { + const ChildNodes::Result& children) { sharedNode node = Leaf(key, factors); node->children.assign(children.begin(), children.end()); return node; } -// Use list_of replacement defined in symbolicExampleGraphs.h -using ChildNodes = ChainedVector; - /* ************************************************************************* */ TEST(EliminationTree, Create) { SymbolicEliminationTree expected =