const correctness for combine (it is not const but takes a const argument)

release/4.3a0
Frank Dellaert 2009-08-24 16:54:22 +00:00
parent dcff7be2f0
commit 72fbc569a5
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ FGConfig LinearFactorGraph::optimize(const Ordering& ordering)
/* ************************************************************************* */
/** combine two factor graphs */
/* ************************************************************************* */
void LinearFactorGraph::combine(LinearFactorGraph &lfg){
void LinearFactorGraph::combine(const LinearFactorGraph &lfg){
for(const_iterator factor=lfg.factors.begin(); factor!=lfg.factors.end(); factor++){
push_back(*factor);
}

View File

@ -105,7 +105,7 @@ namespace gtsam {
* combine two factor graphs
* @param *lfg Linear factor graph
*/
void combine(LinearFactorGraph &lfg);
void combine(const LinearFactorGraph &lfg);
/**
* Find all variables and their dimensions