[Fem] Use std::shared_ptr instead of boost::shared_ptr
There's no need to use boost version when stl has support for shared_ptr
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
|
||||
#include <vector>
|
||||
#include <list>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <memory>
|
||||
#include <SMESH_Version.h>
|
||||
#include <SMDSAbs_ElementType.hxx>
|
||||
|
||||
@@ -46,7 +46,7 @@ class TopoDS_Solid;
|
||||
namespace Fem
|
||||
{
|
||||
|
||||
typedef boost::shared_ptr<SMESH_Hypothesis> SMESH_HypothesisPtr;
|
||||
typedef std::shared_ptr<SMESH_Hypothesis> SMESH_HypothesisPtr;
|
||||
|
||||
/** The representation of a FemMesh
|
||||
*/
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
using namespace Fem;
|
||||
|
||||
|
||||
HypothesisPy::HypothesisPy(boost::shared_ptr<SMESH_Hypothesis> h)
|
||||
HypothesisPy::HypothesisPy(std::shared_ptr<SMESH_Hypothesis> h)
|
||||
: hyp(h)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#define FEM_HYPOTHESISPY_H
|
||||
|
||||
#include <CXX/Extensions.hxx>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <memory>
|
||||
#include <SMESH_Version.h>
|
||||
|
||||
class SMESH_Hypothesis;
|
||||
@@ -36,13 +36,13 @@ class HypothesisPy : public Py::PythonExtension<HypothesisPy>
|
||||
{
|
||||
public:
|
||||
typedef Py::PythonExtension<HypothesisPy> HypothesisPyBase;
|
||||
HypothesisPy(boost::shared_ptr<SMESH_Hypothesis>);
|
||||
HypothesisPy(std::shared_ptr<SMESH_Hypothesis>);
|
||||
virtual ~HypothesisPy();
|
||||
boost::shared_ptr<SMESH_Hypothesis> getHypothesis() const
|
||||
std::shared_ptr<SMESH_Hypothesis> getHypothesis() const
|
||||
{ return hyp; }
|
||||
|
||||
private:
|
||||
boost::shared_ptr<SMESH_Hypothesis> hyp;
|
||||
std::shared_ptr<SMESH_Hypothesis> hyp;
|
||||
};
|
||||
|
||||
typedef Py::ExtensionObject<HypothesisPy> Hypothesis;
|
||||
@@ -71,7 +71,7 @@ public:
|
||||
Py::Object isAuxiliary(const Py::Tuple& args);
|
||||
Py::Object setParametersByMesh(const Py::Tuple& args);
|
||||
|
||||
boost::shared_ptr<SMESH_Hypothesis> getHypothesis() const
|
||||
std::shared_ptr<SMESH_Hypothesis> getHypothesis() const
|
||||
{ return hyp; }
|
||||
|
||||
protected:
|
||||
@@ -83,7 +83,7 @@ private:
|
||||
static PyObject *PyMake(struct _typeobject *, PyObject *, PyObject *);
|
||||
|
||||
private:
|
||||
boost::shared_ptr<SMESH_Hypothesis> hyp;
|
||||
std::shared_ptr<SMESH_Hypothesis> hyp;
|
||||
};
|
||||
|
||||
#if SMESH_VERSION_MAJOR >= 9
|
||||
|
||||
Reference in New Issue
Block a user