diff --git a/src/Mod/Fem/App/FemMesh.h b/src/Mod/Fem/App/FemMesh.h index ce1bd8d88f..b34a7acf85 100644 --- a/src/Mod/Fem/App/FemMesh.h +++ b/src/Mod/Fem/App/FemMesh.h @@ -30,7 +30,7 @@ #include #include -#include +#include #include #include @@ -46,7 +46,7 @@ class TopoDS_Solid; namespace Fem { -typedef boost::shared_ptr SMESH_HypothesisPtr; +typedef std::shared_ptr SMESH_HypothesisPtr; /** The representation of a FemMesh */ diff --git a/src/Mod/Fem/App/HypothesisPy.cpp b/src/Mod/Fem/App/HypothesisPy.cpp index 5371e98f9c..67651204c6 100755 --- a/src/Mod/Fem/App/HypothesisPy.cpp +++ b/src/Mod/Fem/App/HypothesisPy.cpp @@ -71,7 +71,7 @@ using namespace Fem; -HypothesisPy::HypothesisPy(boost::shared_ptr h) +HypothesisPy::HypothesisPy(std::shared_ptr h) : hyp(h) { } diff --git a/src/Mod/Fem/App/HypothesisPy.h b/src/Mod/Fem/App/HypothesisPy.h index 2061675ed4..e66d01cc14 100755 --- a/src/Mod/Fem/App/HypothesisPy.h +++ b/src/Mod/Fem/App/HypothesisPy.h @@ -24,7 +24,7 @@ #define FEM_HYPOTHESISPY_H #include -#include +#include #include class SMESH_Hypothesis; @@ -36,13 +36,13 @@ class HypothesisPy : public Py::PythonExtension { public: typedef Py::PythonExtension HypothesisPyBase; - HypothesisPy(boost::shared_ptr); + HypothesisPy(std::shared_ptr); virtual ~HypothesisPy(); - boost::shared_ptr getHypothesis() const + std::shared_ptr getHypothesis() const { return hyp; } private: - boost::shared_ptr hyp; + std::shared_ptr hyp; }; typedef Py::ExtensionObject Hypothesis; @@ -71,7 +71,7 @@ public: Py::Object isAuxiliary(const Py::Tuple& args); Py::Object setParametersByMesh(const Py::Tuple& args); - boost::shared_ptr getHypothesis() const + std::shared_ptr getHypothesis() const { return hyp; } protected: @@ -83,7 +83,7 @@ private: static PyObject *PyMake(struct _typeobject *, PyObject *, PyObject *); private: - boost::shared_ptr hyp; + std::shared_ptr hyp; }; #if SMESH_VERSION_MAJOR >= 9