[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:
Benjamin Nauck
2021-03-06 01:04:43 +01:00
committed by wwmayer
parent 82e423735f
commit 1384903af8
3 changed files with 9 additions and 9 deletions

View File

@@ -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
*/

View File

@@ -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)
{
}

View File

@@ -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