const correctness for combine (it is not const but takes a const argument)
							parent
							
								
									dcff7be2f0
								
							
						
					
					
						commit
						72fbc569a5
					
				|  | @ -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); | ||||
| 	} | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue