Fixed incorrect return type on FactorGraph::add

release/4.3a0
Richard Roberts 2013-12-16 22:28:03 +00:00
parent 655f9eddb7
commit 92f822af28
1 changed files with 1 additions and 2 deletions

View File

@ -226,8 +226,7 @@ namespace gtsam {
/** Add a factor directly using a shared_ptr */
template<class DERIVEDFACTOR>
typename boost::enable_if<boost::is_base_of<FactorType, DERIVEDFACTOR>,
boost::assign::list_inserter<RefCallPushBack<This> > >::type
typename boost::enable_if<boost::is_base_of<FactorType, DERIVEDFACTOR> >::type
add(boost::shared_ptr<DERIVEDFACTOR> factor) {
push_back(factor);
}