diff --git a/gtsam/inference/FactorGraph.h b/gtsam/inference/FactorGraph.h index 602dd26f2..e5fceeb8d 100644 --- a/gtsam/inference/FactorGraph.h +++ b/gtsam/inference/FactorGraph.h @@ -240,7 +240,7 @@ namespace gtsam { /** Add a factor or container of factors, including STL collections, BayesTrees, etc. */ template void add(const FACTOR_OR_CONTAINER& factorOrContainer) { - push_back(Factor); + push_back(factorOrContainer); } /// @}