Salome HOME
Boost has been removed from code
[modules/shaper.git] / src / ModelAPI / ModelAPI_Attribute.h
index cfef5172421791a08ebd6958ca018a3000be1378..27d65eb9b69eb8bc96b6ac5da4b680a5fb55acad 100644 (file)
@@ -7,7 +7,7 @@
 
 #include "ModelAPI.h"
 #include <string>
-#include <boost/shared_ptr.hpp>
+#include <memory>
 
 class ModelAPI_Object;
 
@@ -18,7 +18,7 @@ class ModelAPI_Object;
 class ModelAPI_Attribute
 {
   ///< needed here to emit signal that feature changed on change of the attribute
-  boost::shared_ptr<ModelAPI_Object> myObject;
+  std::shared_ptr<ModelAPI_Object> myObject;
  protected:
   // accessible from the attributes
   bool myIsInitialized;
@@ -36,13 +36,13 @@ class ModelAPI_Attribute
   }
 
   /// Sets the owner of this attribute
-  MODELAPI_EXPORT virtual void setObject(const boost::shared_ptr<ModelAPI_Object>& theObject)
+  MODELAPI_EXPORT virtual void setObject(const std::shared_ptr<ModelAPI_Object>& theObject)
   {
     myObject = theObject;
   }
 
   /// Returns the owner of this attribute
-  MODELAPI_EXPORT const boost::shared_ptr<ModelAPI_Object>& owner() const
+  MODELAPI_EXPORT const std::shared_ptr<ModelAPI_Object>& owner() const
   {
     return myObject;
   }
@@ -100,6 +100,6 @@ class ModelAPI_Attribute
 };
 
 //! Pointer on attribute object
-typedef boost::shared_ptr<ModelAPI_Attribute> AttributePtr;
+typedef std::shared_ptr<ModelAPI_Attribute> AttributePtr;
 
 #endif