Using boost::make_shared

release/4.3a0
Richard Roberts 2012-06-30 01:44:58 +00:00
parent 1896cf17c6
commit f91ec894b3
1 changed files with 2 additions and 2 deletions

View File

@ -85,8 +85,8 @@ namespace gtsam {
"IndexFactor::CombineAndEliminate called on factors with no variables."); "IndexFactor::CombineAndEliminate called on factors with no variables.");
vector<Index> newKeys(keys.begin(), keys.end()); vector<Index> newKeys(keys.begin(), keys.end());
return make_pair(new IndexConditional(newKeys, nrFrontals), return make_pair(boost::make_shared<IndexConditional>(newKeys, nrFrontals),
new IndexFactor(newKeys.begin() + nrFrontals, newKeys.end())); boost::make_shared<IndexFactor>(newKeys.begin() + nrFrontals, newKeys.end()));
} }
/* ************************************************************************* */ /* ************************************************************************* */