Forgot to add correct type in elimination tree (needed for compilation with tbb).

release/4.3a0
Frank Dellaert 2023-01-10 06:48:51 -08:00
parent 0e01ea6b5d
commit 353a5b3574
1 changed files with 6 additions and 4 deletions

View File

@ -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<sharedNode>;
// Create a node with children.
static sharedNode Node(Key key, const SymbolicFactorGraph& factors,
const std::vector<sharedNode>& 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<sharedNode>;
/* ************************************************************************* */
TEST(EliminationTree, Create) {
SymbolicEliminationTree expected =