Salome HOME
Boost has been removed from code
[modules/shaper.git] / src / GeomAPI / GeomAPI_Dir2d.h
index 906e1af0f6a82ce44a22c37e8ba81582ca231780..3453f1247cefd065c1d13f876f53cc0e8b8d5aa3 100644 (file)
@@ -6,7 +6,7 @@
 #define GeomAPI_Dir2d_H_
 
 #include <GeomAPI_Interface.h>
-#include <boost/shared_ptr.hpp>
+#include <memory>
 
 class GeomAPI_XY;
 
@@ -21,7 +21,7 @@ class GEOMAPI_EXPORT GeomAPI_Dir2d : public GeomAPI_Interface
   /// Creation of direction by coordinates
   GeomAPI_Dir2d(const double theX, const double theY);
   /// Creation of direction by coordinates
-  GeomAPI_Dir2d(const boost::shared_ptr<GeomAPI_XY>& theCoords);
+  GeomAPI_Dir2d(const std::shared_ptr<GeomAPI_XY>& theCoords);
 
   /// returns X coordinate
   double x() const;
@@ -29,12 +29,12 @@ class GEOMAPI_EXPORT GeomAPI_Dir2d : public GeomAPI_Interface
   double y() const;
 
   /// returns coordinates of the direction
-  const boost::shared_ptr<GeomAPI_XY> xy();
+  const std::shared_ptr<GeomAPI_XY> xy();
 
   /// result is a scalar product of directions
-  double dot(const boost::shared_ptr<GeomAPI_Dir2d>& theArg) const;
+  double dot(const std::shared_ptr<GeomAPI_Dir2d>& theArg) const;
   /// result is a cross product of two directions
-  double cross(const boost::shared_ptr<GeomAPI_Dir2d>& theArg) const;
+  double cross(const std::shared_ptr<GeomAPI_Dir2d>& theArg) const;
 };
 
 #endif