use at(i) instead of [i]
parent
6eeceb679a
commit
73eb40595d
|
|
@ -147,7 +147,7 @@ namespace gtsam {
|
||||||
size_t nrChildren() const { return children.size(); }
|
size_t nrChildren() const { return children.size(); }
|
||||||
|
|
||||||
/// Return the child at index i.
|
/// Return the child at index i.
|
||||||
const derived_ptr operator[](size_t i) const { return children[i]; }
|
const derived_ptr operator[](size_t i) const { return children.at(i); }
|
||||||
|
|
||||||
/** The size of subtree rooted at this clique, i.e., nr of Cliques */
|
/** The size of subtree rooted at this clique, i.e., nr of Cliques */
|
||||||
size_t treeSize() const;
|
size_t treeSize() const;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue