From 353a5b35741b88eed775671e40e205e9cb917391 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Tue, 10 Jan 2023 06:48:51 -0800 Subject: [PATCH] Forgot to add correct type in elimination tree (needed for compilation with tbb). --- gtsam/symbolic/tests/testSymbolicEliminationTree.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 =