Fixed incorrect return type on FactorGraph::add
parent
655f9eddb7
commit
92f822af28
|
|
@ -226,8 +226,7 @@ namespace gtsam {
|
||||||
|
|
||||||
/** Add a factor directly using a shared_ptr */
|
/** Add a factor directly using a shared_ptr */
|
||||||
template<class DERIVEDFACTOR>
|
template<class DERIVEDFACTOR>
|
||||||
typename boost::enable_if<boost::is_base_of<FactorType, DERIVEDFACTOR>,
|
typename boost::enable_if<boost::is_base_of<FactorType, DERIVEDFACTOR> >::type
|
||||||
boost::assign::list_inserter<RefCallPushBack<This> > >::type
|
|
||||||
add(boost::shared_ptr<DERIVEDFACTOR> factor) {
|
add(boost::shared_ptr<DERIVEDFACTOR> factor) {
|
||||||
push_back(factor);
|
push_back(factor);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue