Salome HOME
Revert "Corrections for compilation on other OS"
[modules/smesh.git] / src / SMESH / SMESH_Gen.cxx
index 0d59428af2f569df698a11901a4806b462c633fd..2a7e23af9cc1f9ab51a698f5bcae72fec78a0582 100644 (file)
@@ -28,7 +28,6 @@
 
 //#define CHRONODEF
 
-#include <boost/asio.hpp>
 #include "SMESH_Gen.hxx"
 
 #include "SMESH_DriverMesh.hxx"
@@ -59,6 +58,7 @@
 
 using namespace std;
 #include <boost/filesystem.hpp>
+#include <boost/asio.hpp>
 namespace fs = boost::filesystem;
 
 // Environment variable separator
@@ -240,7 +240,7 @@ const std::function<void(SMESH_subMesh*,
                          bool,
                          TopTools_IndexedMapOfShape *,
                          TSetOfInt*)>
-     compute_function([] (SMESH_subMesh* sm,
+     compute_function([&] (SMESH_subMesh* sm,
                           SMESH_subMesh::compute_event event,
                           SMESH_subMesh *shapeSM,
                           bool aShapeOnly,