X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDWrapper%2FBase%2FMED_Wrapper.hxx;h=d64d2b853c430dbdf323f6bc5efa97b4ee41af90;hb=refs%2Fheads%2Frbe%2Ffix-boost-smart-pointers;hp=cd4e8efc3188a7a0df67e65cac76def6ecc7452b;hpb=8608b2b5ca86779ae0b3c42239cb83f8eebf68e2;p=modules%2Fsmesh.git diff --git a/src/MEDWrapper/Base/MED_Wrapper.hxx b/src/MEDWrapper/Base/MED_Wrapper.hxx index cd4e8efc3..d64d2b853 100644 --- a/src/MEDWrapper/Base/MED_Wrapper.hxx +++ b/src/MEDWrapper/Base/MED_Wrapper.hxx @@ -1002,14 +1002,14 @@ namespace MED template SharedPtr(SharedPtr const & r): - boost::shared_ptr(r,boost::detail::dynamic_cast_tag()) + boost::shared_ptr(boost::dynamic_pointer_cast(r)) {} template SharedPtr& operator=(SharedPtr const & r) { - boost::shared_ptr(r,boost::detail::dynamic_cast_tag()).swap(*this); + SharedPtr(r).swap(*this); return *this; }