From 80562c8ae222acfdc5e79181f1c75b6ac3b987e8 Mon Sep 17 00:00:00 2001 From: Yao Chen Date: Wed, 19 Oct 2016 09:16:47 -0400 Subject: [PATCH] Fixed the issue of compilation error. --- gtsam/inference/FactorGraph.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam/inference/FactorGraph.h b/gtsam/inference/FactorGraph.h index 86e130cc7..016488701 100644 --- a/gtsam/inference/FactorGraph.h +++ b/gtsam/inference/FactorGraph.h @@ -188,7 +188,7 @@ namespace gtsam { bayesTree.addFactorsToGraph(*this); } -#ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V4 +//#ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V4 /** Add a factor by value, will be copy-constructed (use push_back with a shared_ptr to avoid * the copy). */ template @@ -196,7 +196,7 @@ namespace gtsam { push_back(const DERIVEDFACTOR& factor) { factors_.push_back(boost::make_shared(factor)); } -#endif +//#endif /** push back many factors with an iterator over plain factors (factors are copied) */ template