]> OCCT Git - occt.git/commitdiff
0032352: Coding Rules - clean up code from compatibility hacks with pre-C++11 compilers
authorkgv <kgv@opencascade.com>
Thu, 2 Dec 2021 12:51:11 +0000 (15:51 +0300)
committersmoskvin <smoskvin@opencascade.com>
Fri, 3 Dec 2021 14:56:37 +0000 (17:56 +0300)
Removed usage of std::auto_ptr.
opencascade::std workarounds for VS2008 have been dropped, when possible.
OCCT_NO_RVALUE_REFERENCE workaround for VS2008 has been removed.

64 files changed:
src/BRepFill/BRepFill_Filling.hxx
src/BRepTools/BRepTools.cxx
src/BVH/BVH_BinaryTree.hxx
src/BVH/BVH_Types.hxx
src/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.cxx
src/BinLDrivers/BinLDrivers_DocumentStorageDriver.cxx
src/BinTools/BinTools.cxx
src/ChFi3d/ChFi3d_ChBuilder.cxx
src/DBRep/DBRep.cxx
src/DDocStd/DDocStd_ApplicationCommands.cxx
src/Draw/Draw_VariableCommands.cxx
src/IGESControl/IGESControl_Writer.cxx
src/IGESSelect/IGESSelect_WorkLibrary.cxx
src/Image/Image_DDSParser.cxx
src/Image/Image_Texture.cxx
src/IntStart/IntStart_SearchOnBoundaries.gxx
src/IntTools/IntTools_FClass2d.cxx
src/IntTools/IntTools_FClass2d.hxx
src/LDOM/LDOMParser.cxx
src/NCollection/NCollection_AliasedArray.hxx
src/NCollection/NCollection_Array1.hxx
src/NCollection/NCollection_Array2.hxx
src/NCollection/NCollection_StlIterator.hxx
src/NCollection/NCollection_UBTreeFiller.hxx
src/NCollection/NCollection_UtfIterator.hxx
src/NCollection/NCollection_UtfString.hxx
src/NCollection/NCollection_UtfString.lxx
src/OSD/OSD_CachedFileSystem.cxx
src/OSD/OSD_CachedFileSystem.hxx
src/OSD/OSD_FileSystem.cxx
src/OSD/OSD_FileSystem.hxx
src/OSD/OSD_FileSystemSelector.cxx
src/OSD/OSD_FileSystemSelector.hxx
src/OSD/OSD_LocalFileSystem.cxx
src/OSD/OSD_LocalFileSystem.hxx
src/OSD/OSD_Parallel.hxx
src/OSD/OSD_StreamBuffer.hxx
src/Poly/Poly_ArrayOfNodes.hxx
src/Poly/Poly_ArrayOfUVNodes.hxx
src/QABugs/QABugs_1.cxx
src/QABugs/QABugs_19.cxx
src/QABugs/QABugs_20.cxx
src/QANCollection/QANCollection_Handle.cxx
src/RWGltf/RWGltf_CafReader.cxx
src/RWGltf/RWGltf_CafWriter.cxx
src/RWGltf/RWGltf_CafWriter.hxx
src/RWGltf/RWGltf_TriangulationReader.cxx
src/RWStl/RWStl.cxx
src/RWStl/RWStl_Reader.cxx
src/Standard/Standard_Handle.hxx
src/Standard/Standard_Macro.hxx
src/Standard/Standard_Std.hxx
src/Standard/Standard_Type.hxx
src/Standard/Standard_TypeDef.hxx
src/StepSelect/StepSelect_WorkLibrary.cxx
src/TCollection/TCollection_AsciiString.hxx
src/TCollection/TCollection_ExtendedString.hxx
src/TObjDRAW/TObjDRAW.cxx
src/TopLoc/TopLoc_SListOfItemLocation.hxx
src/TopoDS/TopoDS_Shape.hxx
src/ViewerTest/ViewerTest_OpenGlCommands.cxx
src/VrmlAPI/VrmlAPI_Writer.cxx
src/XmlLDrivers/XmlLDrivers_DocumentRetrievalDriver.cxx
src/XmlLDrivers/XmlLDrivers_DocumentStorageDriver.cxx

index 558cdc3a18e66dd342c28a24755a64a7d51c4b6d..74a4b31a4b2a4a2c0dc3d302f7ed8db2a372e04b 100644 (file)
@@ -183,7 +183,7 @@ private:
 
 private:
 
-  opencascade::std::shared_ptr<GeomPlate_BuildPlateSurface> myBuilder;
+  std::shared_ptr<GeomPlate_BuildPlateSurface> myBuilder;
   BRepFill_SequenceOfEdgeFaceAndOrder myBoundary;
   BRepFill_SequenceOfEdgeFaceAndOrder myConstraints;
   BRepFill_SequenceOfFaceAndOrder myFreeConstraints;
index 7b75cc325b01731a4403c22dcaac0171ba763aa9..a6ad77c8f81f9e0e1dce4c871a8c76fad7351652 100644 (file)
@@ -712,7 +712,7 @@ Standard_Boolean  BRepTools::Write (const TopoDS_Shape& theShape,
                                     const Message_ProgressRange& theProgress)
 {
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (theFile, std::ios::out);
+  std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (theFile, std::ios::out);
   if (aStream.get() == NULL || !aStream->good())
   {
     return Standard_False;
@@ -754,7 +754,7 @@ Standard_Boolean BRepTools::Read(TopoDS_Shape& Sh,
                                  const Message_ProgressRange& theProgress)
 {
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::istream> aStream = aFileSystem->OpenIStream (File, std::ios::in);
+  std::shared_ptr<std::istream> aStream = aFileSystem->OpenIStream (File, std::ios::in);
   if (aStream.get() == NULL)
   {
     return Standard_False;
index c9db4cad40d5c3e872063b675d356fced649cf02..80d36aca17d275cdad6785ac5257a0f2ab707602 100644 (file)
@@ -215,21 +215,21 @@ BVH_Tree<T, N, BVH_QuadTree>* BVH_Tree<T, N, BVH_BinaryTree>::CollapseToQuadTree
   {
     const std::pair<int, int> aNode = aQueue.front();
 
-    BVH::Array<T, N>::Append (aQBVH->myMinPointBuffer, BVH::Array<T, N>::Value (this->myMinPointBuffer, opencascade::std::get<0> (aNode)));
-    BVH::Array<T, N>::Append (aQBVH->myMaxPointBuffer, BVH::Array<T, N>::Value (this->myMaxPointBuffer, opencascade::std::get<0> (aNode)));
+    BVH::Array<T, N>::Append (aQBVH->myMinPointBuffer, BVH::Array<T, N>::Value (this->myMinPointBuffer, std::get<0> (aNode)));
+    BVH::Array<T, N>::Append (aQBVH->myMaxPointBuffer, BVH::Array<T, N>::Value (this->myMaxPointBuffer, std::get<0> (aNode)));
 
     BVH_Vec4i aNodeInfo;
-    if (this->IsOuter (opencascade::std::get<0> (aNode))) // is leaf node
+    if (this->IsOuter (std::get<0> (aNode))) // is leaf node
     {
       aNodeInfo = BVH_Vec4i (1 /* leaf flag */,
-        this->BegPrimitive (opencascade::std::get<0> (aNode)), this->EndPrimitive (opencascade::std::get<0> (aNode)), opencascade::std::get<1> (aNode) /* level */);
+        this->BegPrimitive (std::get<0> (aNode)), this->EndPrimitive (std::get<0> (aNode)), std::get<1> (aNode) /* level */);
     }
     else
     {
       NCollection_Vector<int> aGrandChildNodes;
 
-      const int aLftChild = Child<0> (opencascade::std::get<0> (aNode));
-      const int aRghChild = Child<1> (opencascade::std::get<0> (aNode));
+      const int aLftChild = Child<0> (std::get<0> (aNode));
+      const int aRghChild = Child<1> (std::get<0> (aNode));
       if (this->IsOuter (aLftChild)) // is leaf node
       {
         aGrandChildNodes.Append (aLftChild);
@@ -252,13 +252,13 @@ BVH_Tree<T, N, BVH_QuadTree>* BVH_Tree<T, N, BVH_BinaryTree>::CollapseToQuadTree
 
       for (int aNodeIdx = 0; aNodeIdx < aGrandChildNodes.Size(); ++aNodeIdx)
       {
-        aQueue.push_back (std::make_pair (aGrandChildNodes (aNodeIdx), opencascade::std::get<1> (aNode) + 1));
+        aQueue.push_back (std::make_pair (aGrandChildNodes (aNodeIdx), std::get<1> (aNode) + 1));
       }
 
       aNodeInfo = BVH_Vec4i (0 /* inner flag */,
-        aNbNodes, aGrandChildNodes.Size() - 1, opencascade::std::get<1> (aNode) /* level */);
+        aNbNodes, aGrandChildNodes.Size() - 1, std::get<1> (aNode) /* level */);
 
-      aQBVH->myDepth = Max (aQBVH->myDepth, opencascade::std::get<1> (aNode) + 1);
+      aQBVH->myDepth = Max (aQBVH->myDepth, std::get<1> (aNode) + 1);
 
       aNbNodes += aGrandChildNodes.Size();
     }
index 10dc849169680ffb98e4d158131538ea88e63e65..12e72604123e199b226a6bd722309a918bed1379 100644 (file)
@@ -275,14 +275,7 @@ namespace BVH
       if (Size (theArray) == theCount)
       {
 #ifdef _STD_VECTOR_SHRINK
-
-#if(defined(_MSC_VER) && (_MSC_VER < 1600))
-        BVH_ArrayNt aTmpArray(theArray);
-        theArray.swap(aTmpArray);
-#else
         theArray.shrink_to_fit();
-#endif
-
 #endif
       }
       else
index 9d351020596c99835f7e4f10cd8f7eaca92ea6e0..0c75fcfefa6bc3f0cb1a2418afc9a610f9f4e7ce 100644 (file)
@@ -78,7 +78,7 @@ void BinLDrivers_DocumentRetrievalDriver::Read
                           const Message_ProgressRange&      theRange)
 {
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::istream> aFileStream = aFileSystem->OpenIStream (theFileName, std::ios::in | std::ios::binary);
+  std::shared_ptr<std::istream> aFileStream = aFileSystem->OpenIStream (theFileName, std::ios::in | std::ios::binary);
 
   if (aFileStream.get() != NULL && aFileStream->good())
   {
index 2dd4bacd8b47bbfee3a0f3e11eabb10e5b6021a9..0a5ec15f7712dea694804d02e2697091de73bb27 100644 (file)
@@ -75,7 +75,7 @@ void BinLDrivers_DocumentStorageDriver::Write
   myFileName = theFileName;
 
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::ostream> aFileStream = aFileSystem->OpenOStream (theFileName, std::ios::out | std::ios::binary);
+  std::shared_ptr<std::ostream> aFileStream = aFileSystem->OpenOStream (theFileName, std::ios::out | std::ios::binary);
 
   if (aFileStream.get() != NULL && aFileStream->good())
   {
index 686a0c600d5b5969254d7d7129f29e9fae205f77..6fde4f9dd68c46be3121073760193b2ec029d86e 100644 (file)
@@ -215,7 +215,7 @@ Standard_Boolean BinTools::Write (const TopoDS_Shape& theShape,
                                   const Message_ProgressRange& theRange)
 {
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (theFile, std::ios::out | std::ios::binary);
+  std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (theFile, std::ios::out | std::ios::binary);
   aStream->precision (15);
   if (aStream.get() == NULL || !aStream->good())
     return Standard_False;
@@ -234,7 +234,7 @@ Standard_Boolean BinTools::Read (TopoDS_Shape& theShape, const Standard_CString
                                  const Message_ProgressRange& theRange)
 {
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::istream> aStream = aFileSystem->OpenIStream (theFile, std::ios::in | std::ios::binary);
+  std::shared_ptr<std::istream> aStream = aFileSystem->OpenIStream (theFile, std::ios::in | std::ios::binary);
   if (aStream.get() == NULL)
   {
     return Standard_False;
index 29bdbac19d0d1132d3e53dd2eb4081440a9a2d0c..dfef8e25d191ae8cfc1c02cdd36910dd0b8d7ccb 100644 (file)
@@ -789,13 +789,8 @@ ChFi3d_ChBuilder::SimulSurf(Handle(ChFiDS_SurfData)&            Data,
     radius = Max(dis, radiusspine);
     locfleche = radius*1.e-2; //graphic criterion
 
-#if (defined(_MSC_VER) && (_MSC_VER < 1600))
-    std::auto_ptr<BlendFunc_GenChamfer>  pFunc;
-    std::auto_ptr<BlendFunc_GenChamfInv> pFInv;
-#else
     std::unique_ptr<BlendFunc_GenChamfer>  pFunc;
     std::unique_ptr<BlendFunc_GenChamfInv> pFInv;
-#endif  
     if (chsp->Mode() == ChFiDS_ClassicChamfer)
     {
       pFunc.reset(new BRepBlend_Chamfer(S1,S2,HGuide));
@@ -886,13 +881,8 @@ ChFi3d_ChBuilder::SimulSurf(Handle(ChFiDS_SurfData)&            Data,
     radius = Max(radius, radiusspine);
     locfleche = radius*1.e-2; //graphic criterion
 
-#if (defined(_MSC_VER) && (_MSC_VER < 1600))
-    std::auto_ptr<BlendFunc_GenChamfer>  pFunc;
-    std::auto_ptr<BlendFunc_GenChamfInv> pFInv;
-#else
     std::unique_ptr<BlendFunc_GenChamfer>  pFunc;
     std::unique_ptr<BlendFunc_GenChamfInv> pFInv;
-#endif  
     if (chsp->Mode() == ChFiDS_ClassicChamfer)
     {
       pFunc.reset(new BRepBlend_Chamfer(S1,S2,HGuide));
@@ -1202,11 +1192,7 @@ Standard_Boolean ChFi3d_ChBuilder::PerformFirstSection
     Standard_Real dis;
     chsp->GetDist(dis);
     
-#if (defined(_MSC_VER) && (_MSC_VER < 1600))
-    std::auto_ptr<BlendFunc_GenChamfer>  pFunc;
-#else
     std::unique_ptr<BlendFunc_GenChamfer>  pFunc;
-#endif  
     if (chsp->Mode() == ChFiDS_ClassicChamfer)
     {
       pFunc.reset(new BRepBlend_Chamfer(S1,S2,HGuide));
@@ -1274,11 +1260,7 @@ Standard_Boolean ChFi3d_ChBuilder::PerformFirstSection
     Standard_Real dis1, dis2;
     chsp->Dists(dis1, dis2);
     
-#if (defined(_MSC_VER) && (_MSC_VER < 1600))
-    std::auto_ptr<BlendFunc_GenChamfer>  pFunc;
-#else
     std::unique_ptr<BlendFunc_GenChamfer>  pFunc;
-#endif  
     if (chsp->Mode() == ChFiDS_ClassicChamfer)
     {
       pFunc.reset(new BRepBlend_Chamfer(S1,S2,HGuide));
@@ -1493,13 +1475,8 @@ ChFi3d_ChBuilder::PerformSurf(ChFiDS_SequenceOfSurfData&          SeqData,
 
   if (chsp->IsChamfer() == ChFiDS_Sym) {
     
-#if (defined(_MSC_VER) && (_MSC_VER < 1600))
-    std::auto_ptr<BlendFunc_GenChamfer>  pFunc;
-    std::auto_ptr<BlendFunc_GenChamfInv> pFInv;
-#else
     std::unique_ptr<BlendFunc_GenChamfer>  pFunc;
     std::unique_ptr<BlendFunc_GenChamfInv> pFInv;
-#endif  
     if (chsp->Mode() == ChFiDS_ClassicChamfer)
     {
       pFunc.reset(new BRepBlend_Chamfer(S1,S2,HGuide));
@@ -1527,13 +1504,8 @@ ChFi3d_ChBuilder::PerformSurf(ChFiDS_SequenceOfSurfData&          SeqData,
     Standard_Real d1, d2;
     chsp->Dists(d1,d2);
     
-#if (defined(_MSC_VER) && (_MSC_VER < 1600))
-    std::auto_ptr<BlendFunc_GenChamfer>  pFunc;
-    std::auto_ptr<BlendFunc_GenChamfInv> pFInv;
-#else
     std::unique_ptr<BlendFunc_GenChamfer>  pFunc;
     std::unique_ptr<BlendFunc_GenChamfInv> pFInv;
-#endif  
     if (chsp->Mode() == ChFiDS_ClassicChamfer)
     {
       pFunc.reset(new BRepBlend_Chamfer(S1,S2,HGuide));
index e2e03fff0dc4fdf4795eb0f995f9fca31810f731..9633b081c905b3e2e8e82fc2f195a386e18cdda9 100644 (file)
@@ -1580,7 +1580,7 @@ static Standard_Integer readbrep (Draw_Interpretor& theDI,
   {
     // probe file header to recognize format
     const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-    opencascade::std::shared_ptr<std::istream> aFile = aFileSystem->OpenIStream (aFileName, std::ios::in | std::ios::binary);
+    std::shared_ptr<std::istream> aFile = aFileSystem->OpenIStream (aFileName, std::ios::in | std::ios::binary);
     if (aFile.get() == NULL)
     {
       theDI << "Error: cannot read the file '" << aFileName << "'";
index 9f093fee64637604107a177a76d84d05a17a3e3d..35be9fd189b241c913acac948a47aa0cf881bed0 100644 (file)
@@ -180,7 +180,7 @@ static Standard_Integer DDocStd_Open (Draw_Interpretor& di,
     if (anUseStream)
     {
       const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-      opencascade::std::shared_ptr<std::istream> aFileStream = aFileSystem->OpenIStream (path, std::ios::in | std::ios::binary);
+      std::shared_ptr<std::istream> aFileStream = aFileSystem->OpenIStream (path, std::ios::in | std::ios::binary);
 
       theStatus = A->Open (*aFileStream, D, aFilter, aProgress->Start());
     }
@@ -298,7 +298,7 @@ static Standard_Integer DDocStd_SaveAs (Draw_Interpretor& di,
     if (anUseStream)
     {
       const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-      opencascade::std::shared_ptr<std::ostream> aFileStream = aFileSystem->OpenOStream (path, std::ios::out | std::ios::binary);
+      std::shared_ptr<std::ostream> aFileStream = aFileSystem->OpenOStream (path, std::ios::out | std::ios::binary);
       theStatus = A->SaveAs (D, *aFileStream, aProgress->Start());
     }
     else
index 7368c92ad50914cb3dc9bf263c21ea335e25ba87..8f0b4f68ec9098c0ae06cfc4019e8c201d676370 100644 (file)
@@ -92,7 +92,7 @@ static Standard_Integer save (Draw_Interpretor& theDI,
 
   const char* aName = theArgVec[2];
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (aName, std::ios::out);
+  std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (aName, std::ios::out);
   aStream->precision (15);
   if (aStream.get() == NULL || !aStream->good())
   {
@@ -145,7 +145,7 @@ static Standard_Integer restore (Draw_Interpretor& theDI,
   const char* aVarName  = theArgVec[2];
 
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::istream> aStream = aFileSystem->OpenIStream (aFileName, std::ios::in);
+  std::shared_ptr<std::istream> aStream = aFileSystem->OpenIStream (aFileName, std::ios::in);
   if (aStream.get() == NULL)
   {
     theDI << "Error: cannot open file for reading: '" << aFileName << "'";
index 565c1c216b2d9ff9d8ca31180c5fb496373ed8ba..735f49ac06d9e97d1adb7bf66ead52e68d750316 100644 (file)
@@ -254,7 +254,7 @@ Standard_Boolean IGESControl_Writer::Write
   (const Standard_CString file, const Standard_Boolean fnes)
 {
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (file, std::ios::out);
+  std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (file, std::ios::out);
   if (aStream.get() == NULL)
   {
     return Standard_False;
index ddb43057b07326301a8392c33c2a7812900c24cd..50f583078c5668966e5c07320961f709674f267c 100644 (file)
@@ -102,7 +102,7 @@ static  Handle(IGESData_FileProtocol) IGESProto;
 
   if (igesmod.IsNull() || prot.IsNull()) return Standard_False;
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (ctx.FileName(), std::ios::out);
+  std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (ctx.FileName(), std::ios::out);
   if (aStream.get() == NULL)
   {
     ctx.CCheck(0)->AddFail("IGES File could not be created");
index c2716f4eb03a8ef49304f83a4e26a954e28c6341..3dac22947cae71d5cfbb97be64d484b14db28b9a 100644 (file)
@@ -68,7 +68,7 @@ Handle(Image_CompressedPixMap) Image_DDSParser::Load (const Handle(Image_Support
                                                       const int64_t theFileOffset)
 {
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::istream> aFile = aFileSystem->OpenIStream (theFile, std::ios::in | std::ios::binary);
+  std::shared_ptr<std::istream> aFile = aFileSystem->OpenIStream (theFile, std::ios::in | std::ios::binary);
   char aHeader[128] = {};
   if (aFile.get() == NULL || !aFile->good())
   {
index 9892b63e76941070b89087e74a4e910bf609a503..34948c016a732131d81e5abfea0364f1a9569d06 100644 (file)
@@ -186,7 +186,7 @@ Handle(Image_PixMap) Image_Texture::loadImageOffset (const TCollection_AsciiStri
   }
 
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::istream> aFile = aFileSystem->OpenIStream (thePath, std::ios::in | std::ios::binary);
+  std::shared_ptr<std::istream> aFile = aFileSystem->OpenIStream (thePath, std::ios::in | std::ios::binary);
   if (aFile.get() == NULL)
   {
     Message::SendFail (TCollection_AsciiString ("Error: Image file '") + thePath + "' cannot be opened");
@@ -252,7 +252,7 @@ TCollection_AsciiString Image_Texture::ProbeImageFileFormat() const
   else
   {
     const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-    opencascade::std::shared_ptr<std::istream> aFileIn = aFileSystem->OpenIStream (myImagePath, std::ios::in | std::ios::binary);
+    std::shared_ptr<std::istream> aFileIn = aFileSystem->OpenIStream (myImagePath, std::ios::in | std::ios::binary);
     if (aFileIn.get() == NULL)
     {
       Message::SendFail (TCollection_AsciiString ("Error: Unable to open file '") + myImagePath + "'");
@@ -316,7 +316,7 @@ TCollection_AsciiString Image_Texture::ProbeImageFileFormat() const
 Standard_Boolean Image_Texture::WriteImage (const TCollection_AsciiString& theFile)
 {
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::ostream> aFileOut = aFileSystem->OpenOStream (theFile, std::ios::out | std::ios::binary | std::ios::trunc);
+  std::shared_ptr<std::ostream> aFileOut = aFileSystem->OpenOStream (theFile, std::ios::out | std::ios::binary | std::ios::trunc);
   if (aFileOut.get() == NULL)
   {
     Message::SendFail (TCollection_AsciiString ("Error: Unable to create file '") + theFile + "'");
@@ -357,7 +357,7 @@ Standard_Boolean Image_Texture::WriteImage (std::ostream& theStream,
   }
 
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::istream> aFileIn = aFileSystem->OpenIStream (myImagePath, std::ios::in | std::ios::binary);
+  std::shared_ptr<std::istream> aFileIn = aFileSystem->OpenIStream (myImagePath, std::ios::in | std::ios::binary);
   if (aFileIn.get() == NULL)
   {
     Message::SendFail (TCollection_AsciiString ("Error: Unable to open file ") + myImagePath + "!");
index bb075d5e9558b6296e4a421830d9b4b044248794..8c013fbce1360353a8ee6f2b42ddb4c7d5ba851d 100644 (file)
@@ -359,11 +359,7 @@ void BoundedArc (const TheArc& A,
     Standard_Boolean IsIntCSdone = Standard_False;
     TColStd_SequenceOfReal Params;
     
-#if (defined(_MSC_VER) && (_MSC_VER < 1600))
-    std::auto_ptr<math_FunctionAllRoots>  pSol;
-#else
     std::unique_ptr<math_FunctionAllRoots> pSol;
-#endif  
     
     math_FunctionSample Echant(Pdeb,Pfin,NbEchant);
 
index 0f24cb8e1d684424b069b4c4558e5c5f94e64a85..75634f66d047b49a4205e6faebd6da531fe37fdf 100644 (file)
@@ -823,19 +823,20 @@ TopAbs_State IntTools_FClass2d::TestOnRestriction
       }
   } //for (;;)
 }
+
 //=======================================================================
-//function : Destroy
-//purpose  : 
+//function : ~IntTools_FClass2d
+//purpose  :
 //=======================================================================
-void IntTools_FClass2d::Destroy() 
-{ 
-  Standard_Integer nbtabclass = TabClass.Length(); 
-  for(Standard_Integer d=1; d<=nbtabclass;d++) {
-    if(TabClass(d)) { 
+IntTools_FClass2d::~IntTools_FClass2d()
+{
+  Standard_Integer nbtabclass = TabClass.Length();
+  for (Standard_Integer d = 1; d <= nbtabclass; d++)
+  {
+    if (TabClass(d))
+    {
       delete ((CSLib_Class2d *)TabClass(d));
       TabClass(d)=NULL;
     }
   }
 }
-
-
index c1fe685123bb19085c317b4e498d5d7c7e52f741..aff1593d225f47e2d8c2e562dbaac905d80bb2ac 100644 (file)
@@ -40,61 +40,38 @@ public:
 
   DEFINE_STANDARD_ALLOC
 
-  
-
   //! Empty constructor
   Standard_EXPORT IntTools_FClass2d();
-  
 
   //! Initializes algorithm by the face F
   //! and tolerance Tol
   Standard_EXPORT IntTools_FClass2d(const TopoDS_Face& F, const Standard_Real Tol);
-  
 
   //! Initializes algorithm by the face F
   //! and tolerance Tol
   Standard_EXPORT void Init (const TopoDS_Face& F, const Standard_Real Tol);
-  
 
   //! Returns state of infinite 2d point relatively to (0, 0)
   Standard_EXPORT TopAbs_State PerformInfinitePoint() const;
-  
 
   //! Returns state of the 2d point Puv.
-  //! If RecadreOnPeriodic is true (defalut value),
+  //! If RecadreOnPeriodic is true (default value),
   //! for the periodic surface 2d point, adjusted to period, is
   //! classified.
   Standard_EXPORT TopAbs_State Perform (const gp_Pnt2d& Puv, const Standard_Boolean RecadreOnPeriodic = Standard_True) const;
-  
 
   //! Destructor
-  Standard_EXPORT void Destroy();
-~IntTools_FClass2d()
-{
-  Destroy();
-}
-  
+  Standard_EXPORT ~IntTools_FClass2d();
 
   //! Test a point with +- an offset (Tol) and returns
   //! On if some points are OUT an some are IN
   //! (Caution: Internal use . see the code for more details)
   Standard_EXPORT TopAbs_State TestOnRestriction (const gp_Pnt2d& Puv, const Standard_Real Tol, const Standard_Boolean RecadreOnPeriodic = Standard_True) const;
-  
-  Standard_EXPORT Standard_Boolean IsHole() const;
-
-
-
-
-protected:
-
-
-
 
+  Standard_EXPORT Standard_Boolean IsHole() const;
 
 private:
 
-
-
   BRepTopAdaptor_SeqOfPtr TabClass;
   TColStd_SequenceOfInteger TabOrien;
   Standard_Real Toluv;
@@ -109,22 +86,8 @@ private:
   Standard_Real Vmax;
   Standard_Boolean myIsHole;
 
-#ifdef _MSC_VER
-#if _MSC_VER < 1600
-  mutable std::auto_ptr<BRepClass_FaceExplorer> myFExplorer;
-#else
   mutable std::unique_ptr<BRepClass_FaceExplorer> myFExplorer;
-#endif
-#else
-  mutable std::unique_ptr<BRepClass_FaceExplorer> myFExplorer;
-#endif
 
 };
 
-
-
-
-
-
-
 #endif // _IntTools_FClass2d_HeaderFile
index 6ee1ecfe7a92e2f4f89ccbda2eb5d596fc19588e..e34712e85274c6d70df0b7fd736764e0f433befe 100644 (file)
@@ -148,7 +148,7 @@ Standard_Boolean LDOMParser::parse (std::istream& anInput,
 Standard_Boolean LDOMParser::parse (const char * const aFileName)
 {
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::istream> aFileStream = aFileSystem->OpenIStream (aFileName, std::ios::in);
+  std::shared_ptr<std::istream> aFileStream = aFileSystem->OpenIStream (aFileName, std::ios::in);
 
   if (aFileStream.get() != NULL && aFileStream->good())
   {
index fa5efeb7f2891d0ccfb2f0056a7cebc02ce70233..a13a000861cb00d9dca64e99023743b08524a13a 100644 (file)
@@ -64,14 +64,12 @@ public:
     }
   }
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
   //! Move constructor
   NCollection_AliasedArray (NCollection_AliasedArray&& theOther)
   : myData (theOther.myData), myStride (theOther.myStride), mySize (theOther.mySize), myDeletable (theOther.myDeletable)
   {
     theOther.myDeletable = false;
   }
-#endif
 
   //! Constructor wrapping pre-allocated C-array of values without copying them.
   template<typename Type_t>
@@ -155,13 +153,11 @@ public:
     return Assign (theOther);
   }
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
   //! Move assignment operator; @sa Move()
   NCollection_AliasedArray& operator= (NCollection_AliasedArray&& theOther)
   {
     return Move (theOther);
   }
-#endif
 
   //! Resizes the array to specified bounds.
   //! No re-allocation will be done if length of array does not change,
index 97718aedb26fc58af39766b253895c686027cc96..473f050b640569ec9ae59cc356b9e62a2dd59b91 100644 (file)
@@ -176,7 +176,6 @@ public:
     Assign (theOther);
   }
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
   //! Move constructor
   NCollection_Array1 (NCollection_Array1&& theOther)
   : myLowerBound (theOther.myLowerBound),
@@ -186,7 +185,6 @@ public:
   {
     theOther.myDeletable  = false;
   }
-#endif
 
   //! C array-based constructor.
   //!
@@ -311,13 +309,11 @@ public:
     return Assign (theOther);
   }
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
   //! Move assignment operator; @sa Move()
   NCollection_Array1& operator= (NCollection_Array1&& theOther)
   {
     return Move (theOther);
   }
-#endif
 
   //! @return first element
   const TheItemType& First() const
index 65115eab35bd88ec366a84c65d8257e21ef733a1..a06d435c74d40ccb2fa42a2f4e24ecf28c43e7b3 100644 (file)
@@ -126,7 +126,6 @@ public:
     *this = theOther;
   }
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
   //! Move constructor
   NCollection_Array2 (NCollection_Array2&& theOther)
   : myLowerRow (theOther.myLowerRow),
@@ -141,7 +140,6 @@ public:
     theOther.myData  = NULL;
     theOther.myDeletable = false;
   }
-#endif
 
   //! C array-based constructor
   NCollection_Array2(const TheItemType&     theBegin,
@@ -256,13 +254,11 @@ public:
     return Assign (theOther);
   }
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
   //! Move assignment operator; @sa Move()
   NCollection_Array2& operator= (NCollection_Array2&& theOther)
   {
     return Move (theOther);
   }
-#endif
 
   //! Constant value access
   const TheItemType& Value (const Standard_Integer theRow,
index 6789f4ab624a8c5d0bb90977d30f88ac9cca3c16..78fa3cf150f711497425f37f2e6cf58affe2474b 100644 (file)
@@ -28,8 +28,8 @@
 template<class Category, class BaseIterator, class ItemType, bool IsConstant>
 class NCollection_StlIterator :
   public std::iterator<Category, ItemType, ptrdiff_t,
-                       typename opencascade::std::conditional<IsConstant, const ItemType*, ItemType*>::type,
-                       typename opencascade::std::conditional<IsConstant, const ItemType&, ItemType&>::type>
+                       typename std::conditional<IsConstant, const ItemType*, ItemType*>::type,
+                       typename std::conditional<IsConstant, const ItemType&, ItemType&>::type>
 {
 public:
 
@@ -71,13 +71,13 @@ protected: //! @name methods related to forward STL iterator
   // an appropriate method based on template arguments (at instantiation time).
 
   template<bool Condition>
-  typename opencascade::std::enable_if<!Condition, ItemType&>::type Reference() const
+  typename std::enable_if<!Condition, ItemType&>::type Reference() const
   {
     return myIterator.ChangeValue();
   }
 
   template<bool Condition>
-  typename opencascade::std::enable_if<Condition, const ItemType&>::type Reference() const
+  typename std::enable_if<Condition, const ItemType&>::type Reference() const
   {
     return myIterator.Value();
   }
index 2b616bc54d958fe9a2c915179a5fddb37378b5f7..04e7b39c155435d6abde800fd4718a18bc974f56 100644 (file)
@@ -128,10 +128,10 @@ template <class TheObjType, class TheBndType> class NCollection_UBTreeFiller
  private:
   // ---------- PRIVATE FIELDS ----------
 
-  UBTree&                               myTree;
-  NCollection_Vector<ObjBnd>            mySeqPtr;
-  opencascade::std::mt19937             myRandGen;      //!< random number generator
-  Standard_Boolean                      myIsFullRandom;
+  UBTree&                    myTree;
+  NCollection_Vector<ObjBnd> mySeqPtr;
+  std::mt19937               myRandGen;      //!< random number generator
+  Standard_Boolean           myIsFullRandom;
 };
 
 //=======================================================================
index 35436398461715a30f25055b6646da303c78d111..812376a59b54d16c9860c4e3ec3e10ef128a9700 100755 (executable)
@@ -185,9 +185,9 @@ private:
   //! Standard_Utf16Char on Windows and to Standard_Utf32Char on Linux.
   template <typename TypeChar>
   class CharTypeChooser : 
-    public   opencascade::std::conditional< sizeof(TypeChar) == 1, Standard_Utf8Char,
-    typename opencascade::std::conditional< sizeof(TypeChar) == 2, Standard_Utf16Char,
-    typename opencascade::std::conditional< sizeof(TypeChar) == 4, Standard_Utf32Char, void >::type >::type >
+    public   std::conditional< sizeof(TypeChar) == 1, Standard_Utf8Char,
+    typename std::conditional< sizeof(TypeChar) == 2, Standard_Utf16Char,
+    typename std::conditional< sizeof(TypeChar) == 4, Standard_Utf32Char, void >::type >::type >
   {
   };
 
index ad180e1ff18c57c65479778f67186187abfc1946..58792a5dea3c56b2231ce88205688231c793a885 100755 (executable)
@@ -80,10 +80,8 @@ public:
   //! @param theCopy string to copy.
   NCollection_UtfString (const NCollection_UtfString& theCopy);
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
   //! Move constructor
   NCollection_UtfString (NCollection_UtfString&& theOther);
-#endif
 
   //! Copy constructor from UTF-8 string.
   //! @param theCopyUtf8 UTF-8 string to copy
@@ -209,10 +207,8 @@ public: //! @name assign operators
   //! Copy from another string.
   const NCollection_UtfString& operator= (const NCollection_UtfString& theOther) { return Assign (theOther); }
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
   //! Move assignment operator.
   NCollection_UtfString& operator= (NCollection_UtfString&& theOther) { Swap (theOther); return *this; }
-#endif
 
   //! Copy from UTF-8 NULL-terminated string.
   const NCollection_UtfString& operator= (const char* theStringUtf8);
index a80a2bb409f83930555c9e5eb0ac9972a404b3ab..839b86bc787d81ff457f076c1d2f616dd57ec2a4 100755 (executable)
@@ -90,7 +90,6 @@ NCollection_UtfString<Type>::NCollection_UtfString (const NCollection_UtfString&
   strCopy ((Standard_Byte* )myString, (const Standard_Byte* )theCopy.myString, mySize);
 }
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
 // =======================================================================
 // function : NCollection_UtfString
 // purpose  :
@@ -105,7 +104,6 @@ NCollection_UtfString<Type>::NCollection_UtfString (NCollection_UtfString&& theO
   theOther.mySize   = 0;
   theOther.myLength = 0;
 }
-#endif
 
 // =======================================================================
 // function : NCollection_UtfString
index 123e54ec85428df64328656618114077f9be08a7..9768407f980d585e2939f274ee38e65b4bc12e69 100644 (file)
@@ -39,7 +39,7 @@ Standard_Boolean OSD_CachedFileSystem::IsSupportedPath (const TCollection_AsciiS
 // function : IsOpenIStream
 // purpose :
 //=======================================================================
-Standard_Boolean OSD_CachedFileSystem::IsOpenIStream (const opencascade::std::shared_ptr<std::istream>& theStream) const
+Standard_Boolean OSD_CachedFileSystem::IsOpenIStream (const std::shared_ptr<std::istream>& theStream) const
 {
   return myLinkedFS->IsOpenIStream (theStream);
 }
@@ -48,7 +48,7 @@ Standard_Boolean OSD_CachedFileSystem::IsOpenIStream (const opencascade::std::sh
 // function : IsOpenOStream
 // purpose :
 //=======================================================================
-Standard_Boolean OSD_CachedFileSystem::IsOpenOStream (const opencascade::std::shared_ptr<std::ostream>& theStream) const
+Standard_Boolean OSD_CachedFileSystem::IsOpenOStream (const std::shared_ptr<std::ostream>& theStream) const
 {
   return myLinkedFS->IsOpenOStream (theStream);
 }
@@ -57,10 +57,10 @@ Standard_Boolean OSD_CachedFileSystem::IsOpenOStream (const opencascade::std::sh
 // function : OpenIStream
 // purpose :
 //=======================================================================
-opencascade::std::shared_ptr<std::istream> OSD_CachedFileSystem::OpenIStream (const TCollection_AsciiString& theUrl,
-                                                                              const std::ios_base::openmode theParams,
-                                                                              const int64_t theOffset,
-                                                                              const opencascade::std::shared_ptr<std::istream>& /*theOldStream*/)
+std::shared_ptr<std::istream> OSD_CachedFileSystem::OpenIStream (const TCollection_AsciiString& theUrl,
+                                                                 const std::ios_base::openmode theParams,
+                                                                 const int64_t theOffset,
+                                                                 const std::shared_ptr<std::istream>& /*theOldStream*/)
 {
   if (myStream.Url != theUrl)
   {
@@ -75,8 +75,8 @@ opencascade::std::shared_ptr<std::istream> OSD_CachedFileSystem::OpenIStream (co
 // function : OpenOStream
 // purpose :
 //=======================================================================
-opencascade::std::shared_ptr<std::ostream> OSD_CachedFileSystem::OpenOStream (const TCollection_AsciiString& theUrl,
-                                                                              const std::ios_base::openmode theMode)
+std::shared_ptr<std::ostream> OSD_CachedFileSystem::OpenOStream (const TCollection_AsciiString& theUrl,
+                                                                 const std::ios_base::openmode theMode)
 {
   return myLinkedFS->OpenOStream (theUrl, theMode);
 }
@@ -85,10 +85,10 @@ opencascade::std::shared_ptr<std::ostream> OSD_CachedFileSystem::OpenOStream (co
 // function : OpenStreamBuffer
 // purpose :
 //=======================================================================
-opencascade::std::shared_ptr<std::streambuf> OSD_CachedFileSystem::OpenStreamBuffer (const TCollection_AsciiString& theUrl,
-                                                                                     const std::ios_base::openmode theMode,
-                                                                                     const int64_t theOffset,
-                                                                                     int64_t* theOutBufSize)
+std::shared_ptr<std::streambuf> OSD_CachedFileSystem::OpenStreamBuffer (const TCollection_AsciiString& theUrl,
+                                                                        const std::ios_base::openmode theMode,
+                                                                        const int64_t theOffset,
+                                                                        int64_t* theOutBufSize)
 {
   if ((theMode & std::ios::out) == std::ios::out)
   {
index 170edcf7a9ce80a3f7e3d9016f1f26c34db4572e..278f762183a8ca3dfc4aaee2b369b80892c66b26 100644 (file)
@@ -38,24 +38,24 @@ public:
   Standard_EXPORT virtual Standard_Boolean IsSupportedPath (const TCollection_AsciiString& theUrl) const Standard_OVERRIDE;
 
   //! Returns TRUE if current input stream is opened for reading operations.
-  Standard_EXPORT virtual Standard_Boolean IsOpenIStream (const opencascade::std::shared_ptr<std::istream>& theStream) const Standard_OVERRIDE;
+  Standard_EXPORT virtual Standard_Boolean IsOpenIStream (const std::shared_ptr<std::istream>& theStream) const Standard_OVERRIDE;
 
   //! Returns TRUE if current output stream is opened for writing operations.
-  Standard_EXPORT virtual Standard_Boolean IsOpenOStream (const opencascade::std::shared_ptr<std::ostream>& theStream) const Standard_OVERRIDE;
+  Standard_EXPORT virtual Standard_Boolean IsOpenOStream (const std::shared_ptr<std::ostream>& theStream) const Standard_OVERRIDE;
 
   //! Opens stream for specified file URL for reading operations or returns previously created stream pointing to the same URL.
-  Standard_EXPORT virtual opencascade::std::shared_ptr<std::istream> OpenIStream
+  Standard_EXPORT virtual std::shared_ptr<std::istream> OpenIStream
                           (const TCollection_AsciiString& theUrl,
                            const std::ios_base::openmode theParams,
                            const int64_t theOffset,
-                           const opencascade::std::shared_ptr<std::istream>& theOldStream) Standard_OVERRIDE;
+                           const std::shared_ptr<std::istream>& theOldStream) Standard_OVERRIDE;
 
   //! Opens stream for specified file URL for writing operations (std::ostream) by calling parent's method.
-  Standard_EXPORT virtual opencascade::std::shared_ptr<std::ostream> OpenOStream (const TCollection_AsciiString& theUrl,
-                                                                                  const std::ios_base::openmode theMode) Standard_OVERRIDE;
+  Standard_EXPORT virtual std::shared_ptr<std::ostream> OpenOStream (const TCollection_AsciiString& theUrl,
+                                                                     const std::ios_base::openmode theMode) Standard_OVERRIDE;
 
   //! Opens stream buffer for specified file URL.
-  Standard_EXPORT virtual opencascade::std::shared_ptr<std::streambuf> OpenStreamBuffer
+  Standard_EXPORT virtual std::shared_ptr<std::streambuf> OpenStreamBuffer
                           (const TCollection_AsciiString& theUrl,
                            const std::ios_base::openmode theMode,
                            const int64_t theOffset = 0,
@@ -66,9 +66,9 @@ protected:
   // Auxiliary structure to save shared stream with path to it.
   struct OSD_CachedStream
   {
-    TCollection_AsciiString                      Url;
-    opencascade::std::shared_ptr<std::istream>   Stream;
-    opencascade::std::shared_ptr<std::streambuf> StreamBuf;
+    TCollection_AsciiString         Url;
+    std::shared_ptr<std::istream>   Stream;
+    std::shared_ptr<std::streambuf> StreamBuf;
 
     void Reset()
     {
index ccb0a25c4810cafd8b0ba12609a52d5bdebfcf15..6c2b67237d2b470ff1f706cd730544d85c78b4a5 100644 (file)
@@ -78,15 +78,15 @@ void OSD_FileSystem::RemoveDefaultProtocol (const Handle(OSD_FileSystem)& theFil
 // function : openIStream
 // purpose :
 //=======================================================================
-opencascade::std::shared_ptr<std::istream> OSD_FileSystem::OpenIStream (const TCollection_AsciiString& theUrl,
-                                                                        const std::ios_base::openmode theMode,
-                                                                        const int64_t theOffset,
-                                                                        const opencascade::std::shared_ptr<std::istream>& theOldStream)
+std::shared_ptr<std::istream> OSD_FileSystem::OpenIStream (const TCollection_AsciiString& theUrl,
+                                                           const std::ios_base::openmode theMode,
+                                                           const int64_t theOffset,
+                                                           const std::shared_ptr<std::istream>& theOldStream)
 {
   Standard_ASSERT_RAISE (theOffset >= -1, "Incorrect negative stream position during stream opening");
 
-  opencascade::std::shared_ptr<std::istream> aNewStream;
-  opencascade::std::shared_ptr<OSD_IStreamBuffer> anOldStream = opencascade::std::dynamic_pointer_cast<OSD_IStreamBuffer> (theOldStream);
+  std::shared_ptr<std::istream> aNewStream;
+  std::shared_ptr<OSD_IStreamBuffer> anOldStream = std::dynamic_pointer_cast<OSD_IStreamBuffer> (theOldStream);
   if (anOldStream.get() != NULL
    && theUrl.IsEqual (anOldStream->Url().c_str())
    && IsOpenIStream (anOldStream))
@@ -104,10 +104,10 @@ opencascade::std::shared_ptr<std::istream> OSD_FileSystem::OpenIStream (const TC
   }
   if (aNewStream.get() == NULL)
   {
-    opencascade::std::shared_ptr<std::streambuf> aFileBuf = OpenStreamBuffer (theUrl, theMode | std::ios_base::in);
+    std::shared_ptr<std::streambuf> aFileBuf = OpenStreamBuffer (theUrl, theMode | std::ios_base::in);
     if (aFileBuf.get() == NULL)
     {
-      return opencascade::std::shared_ptr<std::istream>();
+      return std::shared_ptr<std::istream>();
     }
 
     aNewStream.reset (new OSD_IStreamBuffer (theUrl.ToCString(), aFileBuf));
@@ -123,14 +123,14 @@ opencascade::std::shared_ptr<std::istream> OSD_FileSystem::OpenIStream (const TC
 // function : OpenOStream
 // purpose :
 //=======================================================================
-opencascade::std::shared_ptr<std::ostream> OSD_FileSystem::OpenOStream (const TCollection_AsciiString& theUrl,
-                                                                        const std::ios_base::openmode theMode)
+std::shared_ptr<std::ostream> OSD_FileSystem::OpenOStream (const TCollection_AsciiString& theUrl,
+                                                           const std::ios_base::openmode theMode)
 {
-  opencascade::std::shared_ptr<std::ostream> aNewStream;
-  opencascade::std::shared_ptr<std::streambuf> aFileBuf = OpenStreamBuffer (theUrl, theMode | std::ios_base::out);
+  std::shared_ptr<std::ostream> aNewStream;
+  std::shared_ptr<std::streambuf> aFileBuf = OpenStreamBuffer (theUrl, theMode | std::ios_base::out);
   if (aFileBuf.get() == NULL)
   {
-    return opencascade::std::shared_ptr<std::ostream>();
+    return std::shared_ptr<std::ostream>();
   }
 
   aNewStream.reset(new OSD_OStreamBuffer (theUrl.ToCString(), aFileBuf));
index f741dc09a9f8eaf039eb7a076634854e3788257a..d88f91f74df0357db2c652a346b4b85aff16d88e 100644 (file)
@@ -42,10 +42,10 @@ public:
   virtual Standard_Boolean IsSupportedPath (const TCollection_AsciiString& theUrl) const = 0;
 
   //! Returns TRUE if current input stream is opened for reading operations.
-  virtual Standard_Boolean IsOpenIStream (const opencascade::std::shared_ptr<std::istream>& theStream) const = 0;
+  virtual Standard_Boolean IsOpenIStream (const std::shared_ptr<std::istream>& theStream) const = 0;
 
   //! Returns TRUE if current output stream is opened for writing operations.
-  virtual Standard_Boolean IsOpenOStream(const opencascade::std::shared_ptr<std::ostream>& theStream) const = 0;
+  virtual Standard_Boolean IsOpenOStream(const std::shared_ptr<std::ostream>& theStream) const = 0;
 
   //! Opens stream for specified file URL for reading operations (std::istream).
   //! Default implementation create a stream from file buffer returned by OSD_FileSystem::OpenFileBuffer().
@@ -55,19 +55,19 @@ public:
   //!                          -1 would keep seek position undefined (in case of re-using theOldStream)
   //! @param theOldStream [in] a pointer to existing stream pointing to theUrl to be reused (without re-opening)
   //! @return pointer to newly created opened stream, to theOldStream if it can be reused or NULL in case of failure.
-  Standard_EXPORT virtual opencascade::std::shared_ptr<std::istream> OpenIStream
+  Standard_EXPORT virtual std::shared_ptr<std::istream> OpenIStream
                           (const TCollection_AsciiString& theUrl,
                            const std::ios_base::openmode theMode,
                            const int64_t theOffset = 0,
-                           const opencascade::std::shared_ptr<std::istream>& theOldStream = opencascade::std::shared_ptr<std::istream>());
+                           const std::shared_ptr<std::istream>& theOldStream = std::shared_ptr<std::istream>());
 
   //! Opens stream for specified file URL for writing operations (std::ostream).
   //! Default implementation create a stream from file buffer returned by OSD_FileSystem::OpenFileBuffer().
   //! @param theUrl       [in] path to open
   //! @param theMode      [in] flags describing the requested output mode for the stream (std::ios_base::out will be implicitly added)
   //! @return pointer to newly created opened stream or NULL in case of failure.
-  Standard_EXPORT virtual opencascade::std::shared_ptr<std::ostream> OpenOStream (const TCollection_AsciiString& theUrl,
-                                                                                  const std::ios_base::openmode theMode);
+  Standard_EXPORT virtual std::shared_ptr<std::ostream> OpenOStream (const TCollection_AsciiString& theUrl,
+                                                                     const std::ios_base::openmode theMode);
 
   //! Opens stream buffer for specified file URL.
   //! @param theUrl        [in]  path to open
@@ -75,10 +75,10 @@ public:
   //! @param theOffset     [in]  expected stream position from the beginning of the buffer (beginning of the stream buffer by default)
   //! @param theOutBufSize [out] total buffer size (only if buffer is opened for read)
   //! @return pointer to newly created opened stream buffer or NULL in case of failure.
-  virtual opencascade::std::shared_ptr<std::streambuf> OpenStreamBuffer (const TCollection_AsciiString& theUrl,
-                                                                         const std::ios_base::openmode theMode,
-                                                                         const int64_t theOffset = 0,
-                                                                         int64_t* theOutBufSize = NULL) = 0;
+  virtual std::shared_ptr<std::streambuf> OpenStreamBuffer (const TCollection_AsciiString& theUrl,
+                                                            const std::ios_base::openmode theMode,
+                                                            const int64_t theOffset = 0,
+                                                            int64_t* theOutBufSize = NULL) = 0;
 
   //! Constructor.
   Standard_EXPORT OSD_FileSystem();
index 0733ecb2767608870dcfffa5762f47df8ae08f9e..8c7be8c1e34287ac613f540a265c70bf97fbfbf1 100644 (file)
@@ -61,9 +61,9 @@ Standard_Boolean OSD_FileSystemSelector::IsSupportedPath (const TCollection_Asci
 // function : IsOpenIStream
 // purpose :
 //=======================================================================
-Standard_Boolean OSD_FileSystemSelector::IsOpenIStream (const opencascade::std::shared_ptr<std::istream>& theStream) const
+Standard_Boolean OSD_FileSystemSelector::IsOpenIStream (const std::shared_ptr<std::istream>& theStream) const
 {
-  opencascade::std::shared_ptr<OSD_IStreamBuffer> aFileStream = opencascade::std::dynamic_pointer_cast<OSD_IStreamBuffer> (theStream);
+  std::shared_ptr<OSD_IStreamBuffer> aFileStream = std::dynamic_pointer_cast<OSD_IStreamBuffer> (theStream);
   if (aFileStream.get() == NULL)
   {
     return false;
@@ -86,9 +86,9 @@ Standard_Boolean OSD_FileSystemSelector::IsOpenIStream (const opencascade::std::
 // function : IsOpenOStream
 // purpose :
 //=======================================================================
-Standard_Boolean OSD_FileSystemSelector::IsOpenOStream (const opencascade::std::shared_ptr<std::ostream>& theStream) const
+Standard_Boolean OSD_FileSystemSelector::IsOpenOStream (const std::shared_ptr<std::ostream>& theStream) const
 {
-  opencascade::std::shared_ptr<OSD_OStreamBuffer> aFileStream = opencascade::std::dynamic_pointer_cast<OSD_OStreamBuffer> (theStream);
+  std::shared_ptr<OSD_OStreamBuffer> aFileStream = std::dynamic_pointer_cast<OSD_OStreamBuffer> (theStream);
   if (aFileStream.get() == NULL)
   {
     return false;
@@ -111,68 +111,68 @@ Standard_Boolean OSD_FileSystemSelector::IsOpenOStream (const opencascade::std::
 // function : OpenIStream
 // purpose :
 //=======================================================================
-opencascade::std::shared_ptr<std::istream> OSD_FileSystemSelector::OpenIStream (const TCollection_AsciiString& theUrl,
-                                                                                const std::ios_base::openmode theMode,
-                                                                                const int64_t theOffset,
-                                                                                const opencascade::std::shared_ptr<std::istream>& theOldStream)
+std::shared_ptr<std::istream> OSD_FileSystemSelector::OpenIStream (const TCollection_AsciiString& theUrl,
+                                                                   const std::ios_base::openmode theMode,
+                                                                   const int64_t theOffset,
+                                                                   const std::shared_ptr<std::istream>& theOldStream)
 {
   for (NCollection_List<Handle(OSD_FileSystem)>::Iterator aProtIter (myProtocols); aProtIter.More(); aProtIter.Next())
   {
     const Handle(OSD_FileSystem)& aFileSystem = aProtIter.Value();
     if (aFileSystem->IsSupportedPath (theUrl))
     {
-      opencascade::std::shared_ptr<std::istream> aStream = aFileSystem->OpenIStream (theUrl, theMode, theOffset, theOldStream);
+      std::shared_ptr<std::istream> aStream = aFileSystem->OpenIStream (theUrl, theMode, theOffset, theOldStream);
       if (aStream.get() != NULL)
       {
         return aStream;
       }
     }
   }
-  return opencascade::std::shared_ptr<std::istream>();
+  return std::shared_ptr<std::istream>();
 }
 
 //=======================================================================
 // function : OpenOStream
 // purpose :
 //=======================================================================
-opencascade::std::shared_ptr<std::ostream> OSD_FileSystemSelector::OpenOStream (const TCollection_AsciiString& theUrl,
-                                                                                const std::ios_base::openmode theMode)
+std::shared_ptr<std::ostream> OSD_FileSystemSelector::OpenOStream (const TCollection_AsciiString& theUrl,
+                                                                   const std::ios_base::openmode theMode)
 {
   for (NCollection_List<Handle(OSD_FileSystem)>::Iterator aProtIter (myProtocols); aProtIter.More(); aProtIter.Next())
   {
     const Handle(OSD_FileSystem)& aFileSystem = aProtIter.Value();
     if (aFileSystem->IsSupportedPath (theUrl))
     {
-      opencascade::std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (theUrl, theMode);
+      std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (theUrl, theMode);
       if (aStream.get() != NULL)
       {
         return aStream;
       }
     }
   }
-  return opencascade::std::shared_ptr<std::ostream>();
+  return std::shared_ptr<std::ostream>();
 }
 
 //=======================================================================
 // function : OpenStreamBuffer
 // purpose :
 //=======================================================================
-opencascade::std::shared_ptr<std::streambuf> OSD_FileSystemSelector::OpenStreamBuffer (const TCollection_AsciiString& theUrl,
-                                                                                       const std::ios_base::openmode theMode,
-                                                                                       const int64_t theOffset,
-                                                                                       int64_t* theOutBufSize)
+std::shared_ptr<std::streambuf> OSD_FileSystemSelector::OpenStreamBuffer (const TCollection_AsciiString& theUrl,
+                                                                          const std::ios_base::openmode theMode,
+                                                                          const int64_t theOffset,
+                                                                          int64_t* theOutBufSize)
 {
   for (NCollection_List<Handle(OSD_FileSystem)>::Iterator aProtIter (myProtocols); aProtIter.More(); aProtIter.Next())
   {
     const Handle(OSD_FileSystem)& aFileSystem = aProtIter.Value();
     if (aFileSystem->IsSupportedPath (theUrl))
     {
-      opencascade::std::shared_ptr<std::streambuf> aBuf = aFileSystem->OpenStreamBuffer (theUrl, theMode, theOffset, theOutBufSize);
+      std::shared_ptr<std::streambuf> aBuf = aFileSystem->OpenStreamBuffer (theUrl, theMode, theOffset, theOutBufSize);
       if (aBuf.get() != NULL)
       {
         return aBuf;
       }
     }
   }
-  return opencascade::std::shared_ptr<std::streambuf>();
+  return std::shared_ptr<std::streambuf>();
 }
index 89777f4175ed8d7fda29bfd9d23d7c337d47109a..7ccaf949fce1e79dd15085310c3839ef203dbde5 100644 (file)
@@ -41,24 +41,24 @@ public:
   Standard_EXPORT virtual bool IsSupportedPath (const TCollection_AsciiString& theUrl) const Standard_OVERRIDE;
 
   //! Returns TRUE if current input stream is opened for reading operations.
-  Standard_EXPORT virtual Standard_Boolean IsOpenIStream (const opencascade::std::shared_ptr<std::istream>& theStream) const Standard_OVERRIDE;
+  Standard_EXPORT virtual Standard_Boolean IsOpenIStream (const std::shared_ptr<std::istream>& theStream) const Standard_OVERRIDE;
 
   //! Returns TRUE if current output stream is opened for writing operations.
-  Standard_EXPORT virtual Standard_Boolean IsOpenOStream (const opencascade::std::shared_ptr<std::ostream>& theStream) const Standard_OVERRIDE;
+  Standard_EXPORT virtual Standard_Boolean IsOpenOStream (const std::shared_ptr<std::ostream>& theStream) const Standard_OVERRIDE;
 
   //! Opens input stream using one of registered protocols.
-  Standard_EXPORT virtual opencascade::std::shared_ptr<std::istream> OpenIStream
+  Standard_EXPORT virtual std::shared_ptr<std::istream> OpenIStream
                           (const TCollection_AsciiString& theUrl,
                            const std::ios_base::openmode theMode,
                            const int64_t theOffset = 0,
-                           const opencascade::std::shared_ptr<std::istream>& theOldStream = opencascade::std::shared_ptr<std::istream>()) Standard_OVERRIDE;
+                           const std::shared_ptr<std::istream>& theOldStream = std::shared_ptr<std::istream>()) Standard_OVERRIDE;
 
   //! Opens output stream using one of registered protocols.
-  Standard_EXPORT virtual opencascade::std::shared_ptr<std::ostream> OpenOStream (const TCollection_AsciiString& theUrl,
-                                                                                  const std::ios_base::openmode theMode) Standard_OVERRIDE;
+  Standard_EXPORT virtual std::shared_ptr<std::ostream> OpenOStream (const TCollection_AsciiString& theUrl,
+                                                                     const std::ios_base::openmode theMode) Standard_OVERRIDE;
 
   //! Opens stream buffer using one of registered protocols.
-  Standard_EXPORT virtual opencascade::std::shared_ptr<std::streambuf> OpenStreamBuffer
+  Standard_EXPORT virtual std::shared_ptr<std::streambuf> OpenStreamBuffer
                           (const TCollection_AsciiString& theUrl,
                            const std::ios_base::openmode theMode,
                            const int64_t theOffset = 0,
index 2666bc1d13607aec9c0a13f0a165be82b1f79266..68fa6aded657aef4213ace1dcfa2029a11b1eecf 100644 (file)
@@ -31,9 +31,9 @@ Standard_Boolean OSD_LocalFileSystem::IsSupportedPath (const TCollection_AsciiSt
 // function : IsOpenIStream
 // purpose :
 //=======================================================================
-Standard_Boolean OSD_LocalFileSystem::IsOpenIStream (const opencascade::std::shared_ptr<std::istream>& theStream) const
+Standard_Boolean OSD_LocalFileSystem::IsOpenIStream (const std::shared_ptr<std::istream>& theStream) const
 {
-  opencascade::std::shared_ptr<OSD_IStreamBuffer> aFileStream = opencascade::std::dynamic_pointer_cast<OSD_IStreamBuffer> (theStream);
+  std::shared_ptr<OSD_IStreamBuffer> aFileStream = std::dynamic_pointer_cast<OSD_IStreamBuffer> (theStream);
   if (aFileStream.get() == NULL)
   {
     return false;
@@ -46,9 +46,9 @@ Standard_Boolean OSD_LocalFileSystem::IsOpenIStream (const opencascade::std::sha
 // function : IsOpenOStream
 // purpose :
 //=======================================================================
-Standard_Boolean OSD_LocalFileSystem::IsOpenOStream (const opencascade::std::shared_ptr<std::ostream>& theStream) const
+Standard_Boolean OSD_LocalFileSystem::IsOpenOStream (const std::shared_ptr<std::ostream>& theStream) const
 {
-  opencascade::std::shared_ptr<OSD_OStreamBuffer> aFileStream = opencascade::std::dynamic_pointer_cast<OSD_OStreamBuffer> (theStream);
+  std::shared_ptr<OSD_OStreamBuffer> aFileStream = std::dynamic_pointer_cast<OSD_OStreamBuffer> (theStream);
   if (aFileStream.get() == NULL)
   {
     return false;
@@ -61,16 +61,16 @@ Standard_Boolean OSD_LocalFileSystem::IsOpenOStream (const opencascade::std::sha
 // function : OpenStreamBuffer
 // purpose :
 //=======================================================================
-opencascade::std::shared_ptr<std::streambuf> OSD_LocalFileSystem::OpenStreamBuffer (const TCollection_AsciiString& theUrl,
-                                                                                    const std::ios_base::openmode theMode,
-                                                                                    const int64_t theOffset,
-                                                                                    int64_t* theOutBufSize)
+std::shared_ptr<std::streambuf> OSD_LocalFileSystem::OpenStreamBuffer (const TCollection_AsciiString& theUrl,
+                                                                       const std::ios_base::openmode theMode,
+                                                                       const int64_t theOffset,
+                                                                       int64_t* theOutBufSize)
 {
   Standard_ASSERT_RAISE (theOffset >= 0, "Incorrect negative stream position during stream buffer opening");
-  opencascade::std::shared_ptr<std::filebuf> aNewBuf(new std::filebuf());
+  std::shared_ptr<std::filebuf> aNewBuf(new std::filebuf());
   if (!OSD_OpenStream (*aNewBuf, TCollection_ExtendedString(theUrl), theMode))
   {
-    return opencascade::std::shared_ptr<std::streambuf>();
+    return std::shared_ptr<std::streambuf>();
   }
   // if buffer is opened for read, find the file size
   if (theOutBufSize && ((theMode & std::ios::in) != 0))
@@ -79,13 +79,13 @@ opencascade::std::shared_ptr<std::streambuf> OSD_LocalFileSystem::OpenStreamBuff
     if (aNewBuf->pubseekoff ((std::streamoff )theOffset, std::ios_base::beg, std::ios_base::in) < 0)
     {
       *theOutBufSize = 0;
-      return opencascade::std::shared_ptr<std::streambuf>();
+      return std::shared_ptr<std::streambuf>();
     }
   }
   else if (theOffset > 0 && aNewBuf->pubseekoff ((std::streamoff )theOffset, std::ios_base::beg,
            (theMode & std::ios::in) != 0 ? std::ios_base::in : std::ios_base::out) < 0)
   {
-    return opencascade::std::shared_ptr<std::streambuf>();
+    return std::shared_ptr<std::streambuf>();
   }
   return aNewBuf;
 }
index fbe2db9545ed0c963399192712866d72e1cb064f..2589f9978c846a04492abc3ca3a381b88a283b71 100644 (file)
@@ -29,13 +29,13 @@ public:
   Standard_EXPORT virtual Standard_Boolean IsSupportedPath (const TCollection_AsciiString& theUrl) const Standard_OVERRIDE;
 
   //! Returns TRUE if current input stream is opened for reading operations.
-  Standard_EXPORT virtual Standard_Boolean IsOpenIStream (const opencascade::std::shared_ptr<std::istream>& theStream) const Standard_OVERRIDE;
+  Standard_EXPORT virtual Standard_Boolean IsOpenIStream (const std::shared_ptr<std::istream>& theStream) const Standard_OVERRIDE;
 
   //! Returns TRUE if current output stream is opened for writing operations.
-  Standard_EXPORT virtual Standard_Boolean IsOpenOStream (const opencascade::std::shared_ptr<std::ostream>& theStream) const Standard_OVERRIDE;
+  Standard_EXPORT virtual Standard_Boolean IsOpenOStream (const std::shared_ptr<std::ostream>& theStream) const Standard_OVERRIDE;
 
   //! Opens stream buffer for specified file URL.
-  Standard_EXPORT virtual opencascade::std::shared_ptr<std::streambuf> OpenStreamBuffer
+  Standard_EXPORT virtual std::shared_ptr<std::streambuf> OpenStreamBuffer
                           (const TCollection_AsciiString& theUrl,
                            const std::ios_base::openmode theMode,
                            const int64_t theOffset = 0,
index 0900cd4dffa847608ba87d216492ae7617a69133..b3dd8d0d47dd7bedd4c63389e3f6c079813c3010 100644 (file)
@@ -179,11 +179,7 @@ protected:
     }
 
   private:
-#if (defined(_MSC_VER) && (_MSC_VER < 1600))
-    std::auto_ptr<IteratorInterface> myPtr;
-#else
     std::unique_ptr<IteratorInterface> myPtr;
-#endif
   };
 
   //! Interface class representing functor object.
index 59836e68ac17b800b3a178b088b294264481a3dc..97915a67f583096979716dfb9ac7efe78c446cbb 100644 (file)
@@ -29,7 +29,7 @@ public:
 
   //! Main constructor.
   OSD_StreamBuffer (const std::string& theUrl,
-                    const opencascade::std::shared_ptr<std::streambuf>& theBuffer)
+                    const std::shared_ptr<std::streambuf>& theBuffer)
   : T (theBuffer.get()), myUrl (theUrl), myBuffer (theBuffer) {}
 
   //! Return an opened URL.
@@ -37,8 +37,8 @@ public:
 
 protected:
 
-  std::string                                  myUrl;
-  opencascade::std::shared_ptr<std::streambuf> myBuffer;
+  std::string                     myUrl;
+  std::shared_ptr<std::streambuf> myBuffer;
 };
 
 typedef OSD_StreamBuffer<std::istream>  OSD_IStreamBuffer;
index fda60578b7688cc3e5542d485236037100030954..c65b8842c901f2e06128e876d5db0f4853e7d5bd 100644 (file)
@@ -84,7 +84,6 @@ public:
   //! Assignment operator; @sa Assign()
   Poly_ArrayOfNodes& operator= (const Poly_ArrayOfNodes& theOther) { return Assign (theOther); }
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
   //! Move constructor
   Poly_ArrayOfNodes (Poly_ArrayOfNodes&& theOther)
   : NCollection_AliasedArray (std::move (theOther))
@@ -97,7 +96,6 @@ public:
   {
     return Move (theOther);
   }
-#endif
 
 public:
 
index 7ce3a10d1811d5bf47c0f73b0bd120e482bfc1a7..8ec30bc4666a01caf0f6b46ff9fbd6489e53faaf 100644 (file)
@@ -84,7 +84,6 @@ public:
   //! Assignment operator; @sa Assign()
   Poly_ArrayOfUVNodes& operator= (const Poly_ArrayOfUVNodes& theOther) { return Assign (theOther); }
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
   //! Move constructor
   Poly_ArrayOfUVNodes (Poly_ArrayOfUVNodes&& theOther)
   : NCollection_AliasedArray (std::move (theOther))
@@ -97,7 +96,6 @@ public:
   {
     return Move (theOther);
   }
-#endif
 
 public:
 
index 670bb8e40123937a36a11ecd7734f7897e7263fb..b15836c6f4eb33558077a4083dfac997189e3f21 100644 (file)
@@ -460,7 +460,7 @@ static Standard_Integer OCC30182 (Draw_Interpretor& , Standard_Integer theNbArgs
   else
   {
     const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-    opencascade::std::shared_ptr<std::istream> aFile = aFileSystem->OpenIStream (anImgPath, std::ios::in | std::ios::binary);
+    std::shared_ptr<std::istream> aFile = aFileSystem->OpenIStream (anImgPath, std::ios::in | std::ios::binary);
     if (aFile.get() == NULL)
     {
       std::cout << "Syntax error: image file '" << anImgPath << "' cannot be found\n";
index 5a7648de1ed32e57839efd443ee4df81868ea138..46df73de956f63a0a4403160fb3dc2105bf7638a 100644 (file)
@@ -2758,7 +2758,7 @@ static Standard_Integer OCC29935(Draw_Interpretor& ,
   // Generate data;
   Standard_Integer aSize = Draw::Atoi (theArgv[1]);
 
-  opencascade::std::mt19937 aGen (42);
+  std::mt19937 aGen (42);
   NCollection_Array2<double> aMat1     (0, aSize - 1, 0, aSize - 1);
   NCollection_Array2<double> aMat2     (0, aSize - 1, 0, aSize - 1);
   NCollection_Array2<double> aMatResRef(0, aSize - 1, 0, aSize - 1);
index ece17e6ebe07950f4939a9cdf9df4c95a81dd78a..4647e766142479c50d929830bc1bf5f8dba111d5 100644 (file)
@@ -2408,7 +2408,7 @@ static Standard_Integer OCC28887 (Draw_Interpretor&, Standard_Integer theNbArgs,
   Handle(NCollection_Buffer) aBuffer;
   {
     const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-    opencascade::std::shared_ptr<std::istream> aFile = aFileSystem->OpenIStream (aFilePath, std::ios::binary | std::ios::in);
+    std::shared_ptr<std::istream> aFile = aFileSystem->OpenIStream (aFilePath, std::ios::binary | std::ios::in);
     if (aFile.get() == NULL)
     {
       std::cout << "Error: input file '" << aFilePath << "' cannot be read\n";
index 829e3b04182714801c29561d7ea30a70e0b35538..7be8ef597b9973bb47f4dd7ca243956340f02cb3 100644 (file)
@@ -463,7 +463,7 @@ static Standard_Integer QAHandleInc (Draw_Interpretor& theDI,
   }
 
   Handle(Standard_Transient) aHandle  = new Standard_Transient();
-  opencascade::std::shared_ptr<Standard_Transient> aSharePtr (new Standard_Transient());
+  std::shared_ptr<Standard_Transient> aSharePtr (new Standard_Transient());
   theDI << "Time of creating and destroying " << aNbIters << " smart pointers to the same object, per item, ns:";
   {
     {
@@ -479,7 +479,7 @@ static Standard_Integer QAHandleInc (Draw_Interpretor& theDI,
     {
       QATimer aTimer (theDI, "\nC++ shared_ptr: ", QATimer::ns, aNbIters);
       {
-        std::vector< opencascade::std::shared_ptr<Standard_Transient> > aSharePointers (aNbIters);
+        std::vector< std::shared_ptr<Standard_Transient> > aSharePointers (aNbIters);
         for (Standard_Integer anIter = 0; anIter < aNbIters; ++anIter)
         {
           aSharePointers[anIter] = aSharePtr;
index c53b59b11af561c51a62c07fb3cfc8c6dd414d52..af23af338e24a6398a6b288a555320234c445edb 100644 (file)
@@ -191,7 +191,7 @@ Standard_Boolean RWGltf_CafReader::performMesh (const TCollection_AsciiString& t
   aPSentry.Show();
 
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::istream> aFile = aFileSystem->OpenIStream (theFile, std::ios::in | std::ios::binary);
+  std::shared_ptr<std::istream> aFile = aFileSystem->OpenIStream (theFile, std::ios::in | std::ios::binary);
   if (aFile.get() == NULL || !aFile->good())
   {
     Message::SendFail (TCollection_AsciiString ("File '") + theFile + "' is not found");
index 301c86667479c3c7b627677dc2279a2fcf9b8c10..5e0c8cf0ba33cdf2d3e67fddbd0fb2c8ec28ebde 100644 (file)
@@ -400,7 +400,7 @@ bool RWGltf_CafWriter::writeBinData (const Handle(TDocStd_Document)& theDocument
   myBinDataLen64 = 0;
 
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::ostream> aBinFile = aFileSystem->OpenOStream (myBinFileNameFull, std::ios::out | std::ios::binary);
+  std::shared_ptr<std::ostream> aBinFile = aFileSystem->OpenOStream (myBinFileNameFull, std::ios::out | std::ios::binary);
   if (aBinFile.get() == NULL
    || !aBinFile->good())
   {
@@ -707,7 +707,7 @@ bool RWGltf_CafWriter::writeJson (const Handle(TDocStd_Document)&  theDocument,
 
   const TCollection_AsciiString aFileNameGltf = myFile;
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::ostream> aGltfContentFile = aFileSystem->OpenOStream (aFileNameGltf, std::ios::out | std::ios::binary);
+  std::shared_ptr<std::ostream> aGltfContentFile = aFileSystem->OpenOStream (aFileNameGltf, std::ios::out | std::ios::binary);
   if (aGltfContentFile.get() == NULL
    || !aGltfContentFile->good())
   {
@@ -827,7 +827,7 @@ bool RWGltf_CafWriter::writeJson (const Handle(TDocStd_Document)&  theDocument,
   if (aFullLen64 < std::numeric_limits<uint32_t>::max())
   {
     {
-      opencascade::std::shared_ptr<std::istream> aBinFile = aFileSystem->OpenIStream (myBinFileNameFull, std::ios::in | std::ios::binary);
+      std::shared_ptr<std::istream> aBinFile = aFileSystem->OpenIStream (myBinFileNameFull, std::ios::in | std::ios::binary);
       if (aBinFile.get() == NULL || !aBinFile->good())
       {
         Message::SendFail (TCollection_AsciiString ("File '") + myBinFileNameFull + "' cannot be opened");
index 328c1b7a94e4a337727b18b729472e12947521a8..6e8b9767337f36483944eb28a8096bfc4e6d5be8 100644 (file)
@@ -360,8 +360,7 @@ protected:
   RWMesh_CoordinateSystemConverter              myCSTrsf;            //!< transformation from OCCT to glTF coordinate system
   XCAFPrs_Style                                 myDefaultStyle;      //!< default material definition to be used for nodes with only color defined
 
-  opencascade::std::shared_ptr<RWGltf_GltfOStreamWriter>
-                                                myWriter;            //!< JSON writer
+  std::shared_ptr<RWGltf_GltfOStreamWriter>     myWriter;            //!< JSON writer
   Handle(RWGltf_GltfMaterialMap)                myMaterialMap;       //!< map of defined materials
   RWGltf_GltfBufferView                         myBuffViewPos;       //!< current buffer view with nodes positions
   RWGltf_GltfBufferView                         myBuffViewNorm;      //!< current buffer view with nodes normals
index 44dba18774d2059c19315649339fdfc8569a175f..16ad9b9fa65538a88507985c4ada457fcc96c927 100644 (file)
@@ -154,7 +154,7 @@ bool RWGltf_TriangulationReader::readFileData (const Handle(RWGltf_GltfLatePrimi
                                                const Handle(OSD_FileSystem)& theFileSystem) const
 {
   const Handle(OSD_FileSystem)& aFileSystem = !theFileSystem.IsNull() ? theFileSystem : OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::istream> aSharedStream = aFileSystem->OpenIStream
+  std::shared_ptr<std::istream> aSharedStream = aFileSystem->OpenIStream
     (theGltfData.StreamUri, std::ios::in | std::ios::binary, theGltfData.StreamOffset);
   if (aSharedStream.get() == NULL)
   {
@@ -215,7 +215,7 @@ bool RWGltf_TriangulationReader::readDracoBuffer (const Handle(RWGltf_GltfLatePr
 {
   const TCollection_AsciiString& aName = theSourceGltfMesh->Id();
   const Handle(OSD_FileSystem)& aFileSystem = !theFileSystem.IsNull() ? theFileSystem : OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::istream> aSharedStream = aFileSystem->OpenIStream (theGltfData.StreamUri, std::ios::in | std::ios::binary, theGltfData.StreamOffset);
+  std::shared_ptr<std::istream> aSharedStream = aFileSystem->OpenIStream (theGltfData.StreamUri, std::ios::in | std::ios::binary, theGltfData.StreamOffset);
   if (aSharedStream.get() == NULL)
   {
     reportError (TCollection_AsciiString("Buffer '") + aName + "' refers to invalid file '" + theGltfData.StreamUri + "'.");
index 7febb29540ff0da74a0ae681914f98388e5d0010..8b703f443eb0a1594f7c994b8eb027c62d60f4f1 100644 (file)
@@ -157,7 +157,7 @@ Handle(Poly_Triangulation) RWStl::ReadBinary (const OSD_Path& theFile,
   theFile.SystemName (aPath);
 
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::istream> aStream = aFileSystem->OpenIStream (aPath, std::ios::in | std::ios::binary);
+  std::shared_ptr<std::istream> aStream = aFileSystem->OpenIStream (aPath, std::ios::in | std::ios::binary);
   if (aStream.get() == NULL)
   {
     return Handle(Poly_Triangulation)();
index 85dc4f7b4d50476eafc43d4c602208f5eea50dd5..eb6ad7c1c797ee3e6ddaa0631cced7762a369598 100644 (file)
@@ -140,7 +140,7 @@ Standard_Boolean RWStl_Reader::Read (const char* theFile,
                                      const Message_ProgressRange& theProgress)
 {
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::istream> aStream = aFileSystem->OpenIStream (theFile, std::ios::in | std::ios::binary);
+  std::shared_ptr<std::istream> aStream = aFileSystem->OpenIStream (theFile, std::ios::in | std::ios::binary);
   if (aStream.get() == NULL)
   {
     Message::SendFail (TCollection_AsciiString("Error: file '") + theFile + "' is not found");
index 8b6694e66cd05993e45c7e4724a89f88bf494943..763f83a99712959b04dc698a207381a5f910a924 100644 (file)
@@ -70,13 +70,11 @@ namespace opencascade {
       BeginScope();
     }
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
     //! Move constructor
     handle (handle&& theHandle) : entity(theHandle.entity)
     {
       theHandle.entity = 0;
     }
-#endif
 
     //! Destructor
     ~handle ()
@@ -113,14 +111,12 @@ namespace opencascade {
       return *this;
     }
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
     //! Move operator
     handle& operator= (handle&& theHandle)
     {
       std::swap (this->entity, theHandle.entity);
       return *this;
     }
-#endif
 
     //! STL-like cast to pointer to referred object (note non-const).
     //! @sa std::shared_ptr::get()
@@ -307,7 +303,6 @@ namespace opencascade {
       BeginScope();
     }
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
     //! Generalized move constructor
     template <class T2>
     handle (handle<T2>&& theHandle, typename std::enable_if <is_base_but_not_same <T, T2>::value>::type* = nullptr)
@@ -315,7 +310,6 @@ namespace opencascade {
     {
       theHandle.entity = 0;
     }
-#endif
 
     //! Generalized assignment operator.
     template <class T2>
@@ -327,7 +321,6 @@ namespace opencascade {
       return *this;
     }
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
     //! Generalized move operator
     template <class T2>
     handle& operator= (handle<T2>&& theHandle)
@@ -337,7 +330,6 @@ namespace opencascade {
       std::swap (this->entity, theHandle.entity);
       return *this;
     }
-#endif
 
 #else
 
index b634410eb37be447b2097ebf050bbcefbfbe3f91..a2f949d3572ad2f1c57e4549cd385cd4b6f4c7a0 100644 (file)
 #ifndef _Standard_Macro_HeaderFile
 # define _Standard_Macro_HeaderFile
 
+#if defined(_MSC_VER) && (_MSC_VER < 1600)
+  #error C++11 compatible compiler is required (Visual Studio 2010 or newer)
+#endif
+
 //! @def Standard_OVERRIDE
 //! Should be used in declarations of virtual methods overridden in the
 //! derived classes, to cause compilation error in the case if that virtual 
 //! function disappears or changes its signature in the base class.
 //!
 //! Expands to C++11 keyword "override" on compilers that are known to
-//! suppot it; empty in other cases.
+//! support it; empty in other cases.
 #if defined(__cplusplus) && (__cplusplus >= 201100L)
   // part of C++11 standard
   #define Standard_OVERRIDE override
   #define Standard_ENABLE_DEPRECATION_WARNINGS
 #endif
 
-//! @def OCCT_NO_RVALUE_REFERENCE
-//! Disables methods and constructors that use rvalue references
-//! (C++11 move semantics) not supported by obsolete compilers.
-#if (defined(_MSC_VER) && (_MSC_VER < 1600))
-  #define OCCT_NO_RVALUE_REFERENCE
-#endif
-
 # ifdef _WIN32
 
 // We must be careful including windows.h: it is really poisonous stuff!
index db925b0c2038ec7142075910375205c6b29151ea..4a8d9921da13c851b2df896e93e02d924b15c844 100644 (file)
@@ -33,37 +33,6 @@ namespace opencascade
     // import all available standard stuff from std namespace
     using namespace ::std;
 
-// for old MSVC compiler, some standard templates are defined in std::tr1 namespace,
-// and some missing ones are implemented here
-#if (defined(_MSC_VER) && (_MSC_VER < 1600))
-    using namespace ::std::tr1;
-
-    // C++11 template class enable_if
-    template <bool Test, class Type = void>
-    struct enable_if
-    { // type is undefined for assumed !_Test
-    };
-
-    template <class _Type>
-    struct enable_if<true, _Type>
-    { // type is _Type for _Test
-      typedef _Type type;
-    };
-
-    template <bool Condition, typename TypeTrue, typename TypeFalse>
-    struct conditional
-    {
-      typedef TypeTrue type;
-    };
-
-    template <typename TypeTrue, typename TypeFalse>
-    struct conditional<false, TypeTrue, TypeFalse>
-    {
-      typedef TypeFalse type;
-    };
-
-#endif
-
   } // namespace std
 
   //! Trait yielding true if class T1 is base of T2 but not the same
index 9fcdf55426770aa1931b12f10b0dfd93e6183d83..65b6826a81a459ea7c531642965a3a35e745ece5 100644 (file)
@@ -63,11 +63,6 @@ namespace opencascade
   static_assert(opencascade::has_type<Base, direct_base_classes>::type::value, "OCCT RTTI definition is incorrect: " #Base " is not direct base class of " #Class); \
   static_assert(&get_type_name == &Class::get_type_name, "OCCT RTTI definition is misplaced: current class is not " #Class);
 
-#elif (defined(_MSC_VER) && (_MSC_VER < 1600))
-
-// VC9 does not support static_assert and decltype at all
-#define OCCT_CHECK_BASE_CLASS(Class,Base)
-
 #elif (defined(_MSC_VER) && (_MSC_VER >= 1900))
 
 // VC14+ allow using address of member functions in static checks,
index 5d452394cfc8bbe27d4c9bff3e605bdfea65004b..81d6e5f1e182aada1bccb38870fc27f8a5cca212 100755 (executable)
 #include <cstddef>
 #include <ctime>
 
-// VC9 does not have stdint.h
-#if(defined(_MSC_VER) && (_MSC_VER < 1600))
-  // old MSVC - hasn't stdint header
-  typedef unsigned __int8   uint8_t;
-  typedef unsigned __int16  uint16_t;
-  typedef unsigned __int32  uint32_t;
-  typedef unsigned __int64  uint64_t;
-
-  typedef signed __int8   int8_t;
-  typedef signed __int16  int16_t;
-  typedef signed __int32  int32_t;
-  typedef signed __int64  int64_t;
-#else
-  #include <stdint.h>
-#endif
+#include <stdint.h>
 
 #if(defined(_MSC_VER) && (_MSC_VER < 1800))
   // only Visual Studio 2013 (vc12) provides <cinttypes> header
index a7a99ded57b90a9c4eb1a0a9091a688758e26571..6f672e13e3f8597db2488f94abbcaa9f642021c8 100644 (file)
@@ -99,7 +99,7 @@ Standard_Boolean  StepSelect_WorkLibrary::WriteFile
   if (stepmodel.IsNull() || stepro.IsNull()) return Standard_False;
 
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (ctx.FileName(), std::ios::out | std::ios::trunc);
+  std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (ctx.FileName(), std::ios::out | std::ios::trunc);
 
   if (aStream.get() == NULL) {
     ctx.CCheck(0)->AddFail("Step File could not be created");
index e839451ecd0a349d198247f1b78e152ca6703af2..8f277b12211ceff6c66f774178965324a107e43f 100644 (file)
@@ -76,7 +76,6 @@ public:
   //! Initializes a AsciiString with another AsciiString.
   Standard_EXPORT TCollection_AsciiString(const TCollection_AsciiString& astring);
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
   //! Move constructor
   TCollection_AsciiString (TCollection_AsciiString&& theOther)
   : mystring (theOther.mystring),
@@ -85,7 +84,6 @@ public:
     theOther.mystring = NULL;
     theOther.mylength = 0;
   }
-#endif
   
   //! Initializes a AsciiString with copy of another AsciiString
   //! concatenated with the message character.
@@ -280,10 +278,8 @@ void operator = (const TCollection_AsciiString& fromwhere)
   //! Exchange the data of two strings (without reallocating memory).
   Standard_EXPORT void Swap (TCollection_AsciiString& theOther);
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
   //! Move assignment operator
   TCollection_AsciiString& operator= (TCollection_AsciiString&& theOther) { Swap (theOther); return *this; }
-#endif
 
   //! Frees memory allocated by AsciiString.
   Standard_EXPORT ~TCollection_AsciiString();
index 0bd0ed43519c152d707d82b277bf0fbde2b5b367..899eecd7f9c8dada7537030ce851a599c51e0968 100644 (file)
@@ -97,7 +97,6 @@ public:
   //! Initializes a ExtendedString with another ExtendedString.
   Standard_EXPORT TCollection_ExtendedString(const TCollection_ExtendedString& astring);
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
   //! Move constructor
   TCollection_ExtendedString (TCollection_ExtendedString&& theOther)
   : mystring (theOther.mystring),
@@ -106,7 +105,6 @@ public:
     theOther.mystring = NULL;
     theOther.mylength = 0;
   }
-#endif
 
   //! Creation by converting an Ascii string to an extended
   //! string. The string is treated as having UTF-8 coding.
@@ -154,10 +152,8 @@ void operator = (const TCollection_ExtendedString& fromwhere)
   //! Exchange the data of two strings (without reallocating memory).
   Standard_EXPORT void Swap (TCollection_ExtendedString& theOther);
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
   //! Move assignment operator
   TCollection_ExtendedString& operator= (TCollection_ExtendedString&& theOther) { Swap (theOther); return *this; }
-#endif
 
   //! Frees memory allocated by ExtendedString.
   Standard_EXPORT ~TCollection_ExtendedString();
index af3e257146a0e43d9fdd39551a2a536ef04b454e..e26c9914740e38f4e337a117fffe144c58c3fc6a 100644 (file)
@@ -208,7 +208,7 @@ static Standard_Integer saveModel (Draw_Interpretor& di, Standard_Integer argc,
     if (anUseStream)
     {
       const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-      opencascade::std::shared_ptr<std::ostream> aFileStream = aFileSystem->OpenOStream (argv[2], std::ios::out | std::ios::binary);
+      std::shared_ptr<std::ostream> aFileStream = aFileSystem->OpenOStream (argv[2], std::ios::out | std::ios::binary);
       isSaved = aModel->SaveAs (*aFileStream);
     }
     else
@@ -252,7 +252,7 @@ static Standard_Integer loadModel (Draw_Interpretor& di, Standard_Integer argc,
     if (anUseStream)
     {
       const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-      opencascade::std::shared_ptr<std::istream> aFileStream = aFileSystem->OpenIStream (aPath, std::ios::in | std::ios::binary);
+      std::shared_ptr<std::istream> aFileStream = aFileSystem->OpenIStream (aPath, std::ios::in | std::ios::binary);
       isLoaded = aModel->Load (*aFileStream);
     }
     else
index a8c136c77429c4dd9cccdd1d9ed71bea2512961e..ce6b3d356db67a449b9d8cae1665250075658469 100644 (file)
@@ -69,8 +69,6 @@ public:
     return Assign(Other);
   }
   
-#ifndef OCCT_NO_RVALUE_REFERENCE
-
   //! Move constructor
   TopLoc_SListOfItemLocation (TopLoc_SListOfItemLocation&& theOther)
     : myNode(std::move (theOther.myNode))
@@ -84,8 +82,6 @@ public:
     return *this;
   }
 
-#endif
-
   //! Returne true if this list is empty
   Standard_Boolean IsEmpty() const
   {
index be92f62837f5f45e6da8ca356606fa73dab4af43..4106967b079b95972a8739b0c0eb068a1f2ef1e6 100644 (file)
@@ -48,8 +48,6 @@ public:
   //! Creates a NULL Shape referring to nothing.
   TopoDS_Shape() : myOrient (TopAbs_EXTERNAL) {}
 
-#ifndef OCCT_NO_RVALUE_REFERENCE
-
   //! Generalized move constructor, accepting also sub-classes
   //! (TopoDS_Shape hierarchy declares only fake sub-classes with no extra fields).
   template<class T2>
@@ -71,8 +69,6 @@ public:
     return *this;
   }
 
-#endif
-
   //! Returns true if this shape is null. In other words, it
   //! references no underlying shape with the potential to
   //! be given a location and an orientation.
index 7f4af794399c76e6e1cbffdcf809c7062ee6db8b..8fbd807047fb0085f32b3272eaa7aaa5b8585327 100644 (file)
@@ -638,7 +638,7 @@ static Standard_Integer VListMaterials (Draw_Interpretor& theDI,
   };
 
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::ostream> aMatFile, anObjFile, aHtmlFile;
+  std::shared_ptr<std::ostream> aMatFile, anObjFile, aHtmlFile;
   if (aDumpFile.EndsWith (".obj")
    || aDumpFile.EndsWith (".mtl"))
   {
@@ -894,7 +894,7 @@ static Standard_Integer VListColors (Draw_Interpretor& theDI,
   }
 
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::ostream> aHtmlFile;
+  std::shared_ptr<std::ostream> aHtmlFile;
   TCollection_AsciiString aFileNameBase, aFolder;
   if (aDumpFile.EndsWith (".htm")
    || aDumpFile.EndsWith (".html"))
@@ -1088,7 +1088,7 @@ static Standard_Integer VGenEnvLUT (Draw_Interpretor&,
   }
 
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::ostream> aFile = aFileSystem->OpenOStream (aFilePath, std::ios::out | std::ios::trunc);
+  std::shared_ptr<std::ostream> aFile = aFileSystem->OpenOStream (aFilePath, std::ios::out | std::ios::trunc);
 
   if (aFile.get() == NULL || !aFile->good())
   {
index 9b884a0d38bc759cacecab2c142af72874f85fd4..0275a949de20ac27bca71bbdaa5f747d3d529d38 100644 (file)
@@ -226,7 +226,7 @@ Standard_Boolean VrmlAPI_Writer::write_v1(const TopoDS_Shape& aShape,const Stand
   OSD_Path thePath(aFile);
   TCollection_AsciiString theFile;thePath.SystemName(theFile);
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::ostream> anOutFile = aFileSystem->OpenOStream (theFile, std::ios::out);
+  std::shared_ptr<std::ostream> anOutFile = aFileSystem->OpenOStream (theFile, std::ios::out);
   if (anOutFile.get() == NULL)
   {
     return Standard_False;
@@ -370,7 +370,7 @@ Standard_Boolean VrmlAPI_Writer::write_v2(const TopoDS_Shape& aShape,const Stand
   aConv.Convert(anExtFace, anExtEdge);
 
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::ostream> anOutStream = aFileSystem->OpenOStream (aFile, std::ios::out);
+  std::shared_ptr<std::ostream> anOutStream = aFileSystem->OpenOStream (aFile, std::ios::out);
   if (anOutStream.get() != NULL)
   {
     *anOutStream << aScene;
@@ -395,7 +395,7 @@ Standard_Boolean VrmlAPI_Writer::WriteDoc(
   aConv.ConvertDocument(theDoc);
 
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::ostream> anOutStream = aFileSystem->OpenOStream (theFile, std::ios::out);
+  std::shared_ptr<std::ostream> anOutStream = aFileSystem->OpenOStream (theFile, std::ios::out);
   if (anOutStream.get() != NULL)
   {
     *anOutStream << aScene;
index b931737026e80879c35d31fc7428f269ba2d65b9..96f4bad242edf2127694b33665ea4c2b6ee40a3c 100644 (file)
@@ -176,7 +176,7 @@ void XmlLDrivers_DocumentRetrievalDriver::Read
   myFileName = theFileName;
 
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::istream> aFileStream = aFileSystem->OpenIStream (myFileName, std::ios::in);
+  std::shared_ptr<std::istream> aFileStream = aFileSystem->OpenIStream (myFileName, std::ios::in);
 
   if (aFileStream.get() != NULL && aFileStream->good())
   {
index f1176e69291a4727625686c7559b760c3703665e..271d4dcdd788436f65bf66fac4a4ae3637890c3e 100644 (file)
@@ -99,8 +99,7 @@ void XmlLDrivers_DocumentStorageDriver::Write (const Handle(CDM_Document)&
   myFileName = theFileName;
 
   const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
-  opencascade::std::shared_ptr<std::ostream> aFileStream = aFileSystem->OpenOStream (theFileName, std::ios::out);
-
+  std::shared_ptr<std::ostream> aFileStream = aFileSystem->OpenOStream (theFileName, std::ios::out);
   if (aFileStream.get() != NULL && aFileStream->good())
   {
     Write (theDocument, *aFileStream, theRange);