make_shared is a tad faster

release/4.3a0
dellaert 2014-10-06 12:13:24 +02:00
parent 930c77642e
commit f887ca47b9
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ boost::shared_ptr<GaussianFactor> NoiseModelFactor::linearize(
noiseModel::Constrained::shared_ptr model = constrained->unit(d_); noiseModel::Constrained::shared_ptr model = constrained->unit(d_);
return boost::make_shared<JacobianFactor>(terms, b_, model); return boost::make_shared<JacobianFactor>(terms, b_, model);
} else } else
return GaussianFactor::shared_ptr(new JacobianFactor(terms, b)); return boost::make_shared<JacobianFactor>(terms, b);
} }
/* ************************************************************************* */ /* ************************************************************************* */