mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 02:00:34 +05:00
Fix usage of Boost smart pointers for compatibility with Boost >= 1.53
This commit is contained in:
parent
8608b2b5ca
commit
78eecd21fc
@ -48,7 +48,7 @@ namespace MED
|
|||||||
//! Construct the class by any specialisation of the class
|
//! Construct the class by any specialisation of the class
|
||||||
template<class Y>
|
template<class Y>
|
||||||
SharedPtr(SharedPtr<Y> const & r):
|
SharedPtr(SharedPtr<Y> const & r):
|
||||||
boost::shared_ptr<T>(r,boost::detail::dynamic_cast_tag())
|
boost::shared_ptr<T>(boost::dynamic_pointer_cast<T,Y>(r))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
//! Copy-constructor
|
//! Copy-constructor
|
||||||
@ -56,7 +56,7 @@ namespace MED
|
|||||||
SharedPtr&
|
SharedPtr&
|
||||||
operator=(SharedPtr<Y> const & r)
|
operator=(SharedPtr<Y> const & r)
|
||||||
{
|
{
|
||||||
boost::shared_ptr<T>(r,boost::detail::dynamic_cast_tag()).swap(*this);
|
SharedPtr<T>(r).swap(*this);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1002,14 +1002,14 @@ namespace MED
|
|||||||
|
|
||||||
template<class Y>
|
template<class Y>
|
||||||
SharedPtr(SharedPtr<Y> const & r):
|
SharedPtr(SharedPtr<Y> const & r):
|
||||||
boost::shared_ptr<TWrapper>(r,boost::detail::dynamic_cast_tag())
|
boost::shared_ptr<TWrapper>(boost::dynamic_pointer_cast<TWrapper,Y>(r))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
template<class Y>
|
template<class Y>
|
||||||
SharedPtr&
|
SharedPtr&
|
||||||
operator=(SharedPtr<Y> const & r)
|
operator=(SharedPtr<Y> const & r)
|
||||||
{
|
{
|
||||||
boost::shared_ptr<TWrapper>(r,boost::detail::dynamic_cast_tag()).swap(*this);
|
SharedPtr<TWrapper>(r).swap(*this);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,6 +42,7 @@ SET(_link_LIBRARIES
|
|||||||
${CAS_TKG3d}
|
${CAS_TKG3d}
|
||||||
${CAS_TKGeomBase}
|
${CAS_TKGeomBase}
|
||||||
${CAS_TKGeomAlgo}
|
${CAS_TKGeomAlgo}
|
||||||
|
${Boost_LIBRARIES}
|
||||||
SMESHDS
|
SMESHDS
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user