]> SALOME platform Git repositories - plugins/gmshplugin.git/blobdiff - src/GMSHPlugin/GMSHPlugin_GMSH_3D_Remote.cxx
Salome HOME
[bos #38046] [EDF] (2023-T3) allow compilation in windows.
[plugins/gmshplugin.git] / src / GMSHPlugin / GMSHPlugin_GMSH_3D_Remote.cxx
index 7635a9d64dba036216d3609c5a1b7257445634f4..9a5e749a8f67c9fd558c8627189e97dca076a4f5 100644 (file)
 #include <QString>
 #include <QProcess>
 
-#ifdef WIN32
-#include <filesystem>
-namespace fs = std::filesystem;
-#else
 #include <boost/filesystem.hpp>
 namespace fs = boost::filesystem;
-#endif
 
 //=============================================================================
 /*!
@@ -180,11 +175,12 @@ void GMSHPlugin_GMSH_3D_Remote::exportElementOrientation(SMESH_Mesh& aMesh,
     std::ofstream df(output_file, ios::out|ios::binary);
     int size = elemOrientation.size();
     df.write((char*)&size, sizeof(int));
-    for(auto const& [id, orient]:elemOrientation)
+    for(std::map<vtkIdType,bool>::iterator iter = elemOrientation.begin(); iter != elemOrientation.end(); ++iter)
     {
-      df.write((char*)&id, sizeof(vtkIdType));
-      df.write((char*)&orient, sizeof(bool));
+      df.write((char*)&(iter->first), sizeof(vtkIdType));
+      df.write((char*)&(iter->second), sizeof(bool));
     }
+    
     df.close();
   }
 }