use at(i) instead of [i]

release/4.3a0
Frank Dellaert 2023-07-17 17:14:24 +02:00
parent 6eeceb679a
commit 73eb40595d
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ namespace gtsam {
size_t nrChildren() const { return children.size(); }
/// 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 */
size_t treeSize() const;