From f91ec894b302cbbcc07112e61e1963628cf95962 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Sat, 30 Jun 2012 01:44:58 +0000 Subject: [PATCH] Using boost::make_shared --- gtsam/inference/SymbolicFactorGraph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam/inference/SymbolicFactorGraph.cpp b/gtsam/inference/SymbolicFactorGraph.cpp index b58a69b6d..00f3439a0 100644 --- a/gtsam/inference/SymbolicFactorGraph.cpp +++ b/gtsam/inference/SymbolicFactorGraph.cpp @@ -85,8 +85,8 @@ namespace gtsam { "IndexFactor::CombineAndEliminate called on factors with no variables."); vector newKeys(keys.begin(), keys.end()); - return make_pair(new IndexConditional(newKeys, nrFrontals), - new IndexFactor(newKeys.begin() + nrFrontals, newKeys.end())); + return make_pair(boost::make_shared(newKeys, nrFrontals), + boost::make_shared(newKeys.begin() + nrFrontals, newKeys.end())); } /* ************************************************************************* */