[mechanics] better fix for problem was boost::make_shared with a const ref
@@ -452,10 +452,10 @@ struct UpdateShapeVisitor : public SiconosVisitor
void SiconosBulletCollisionManager_impl::updateAllShapesForDS(const BodyDS &bds)
{
- UpdateShapeVisitor updateShapeVisitor(*this);
+ SP::UpdateShapeVisitor updateShapeVisitor(new UpdateShapeVisitor(*this));
std::vector<std11::shared_ptr<BodyShapeRecord> >::iterator it;
for (it = bodyShapeMap[&bds].begin(); it != bodyShapeMap[&bds].end(); it++)
- (*it)->accept(updateShapeVisitor);
+ (*it)->acceptSP(updateShapeVisitor);
}
template<typename ST, typename BT, typename BR>
