Salome HOME
Fix: critical make_shared problem in Debian 6
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_Prism.cpp
index 4c7eb7ed10fd0fa984980f6a38874855bd6a04a7..0677d7fc6c7a03dedf2f3fba6d9c47118b905561 100644 (file)
@@ -111,19 +111,19 @@ void GeomAlgoAPI_Prism::build(const std::shared_ptr<GeomAPI_Shape>& theBasis,
         aResult = GeomAlgoAPI_DFLoader::refineResult(aResult);
       }
       // fill data map to keep correct orientation of sub-shapes
-      myMap = std::make_shared<GeomAPI_DataMapOfShapeShape>();
+      myMap = std::shared_ptr<GeomAPI_DataMapOfShapeShape>(new GeomAPI_DataMapOfShapeShape());
       for (TopExp_Explorer Exp(aResult,TopAbs_FACE); Exp.More(); Exp.Next()) {
         std::shared_ptr<GeomAPI_Shape> aCurrentShape(new GeomAPI_Shape());
         aCurrentShape->setImpl(new TopoDS_Shape(Exp.Current()));
         myMap->bind(aCurrentShape, aCurrentShape);
       }
-      myShape = std::make_shared<GeomAPI_Shape>();
+      myShape = std::shared_ptr<GeomAPI_Shape>(new GeomAPI_Shape());
       myShape->setImpl(new TopoDS_Shape(aResult));
-      myFirst = std::make_shared<GeomAPI_Shape>();
+      myFirst = std::shared_ptr<GeomAPI_Shape>(new GeomAPI_Shape());
       myFirst->setImpl(new TopoDS_Shape(aBuilder->Modified(aFromShape).First()));
-      myLast = std::make_shared<GeomAPI_Shape>();
+      myLast = std::shared_ptr<GeomAPI_Shape>(new GeomAPI_Shape());
       myLast->setImpl(new TopoDS_Shape(aBuilder->Modified(aToShape).First()));
-      myMkShape = std::make_shared<GeomAlgoAPI_MakeShape>();
+      myMkShape = std::shared_ptr<GeomAlgoAPI_MakeShape>(new GeomAlgoAPI_MakeShape());
       myMkShape->setImpl(aBuilder);
     }
   }