]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Tentative fix for compilation on FED24 ... abn/exception
authorabn <adrien.bruneton@cea.fr>
Fri, 25 Nov 2016 14:38:36 +0000 (15:38 +0100)
committerabn <adrien.bruneton@cea.fr>
Fri, 25 Nov 2016 14:38:36 +0000 (15:38 +0100)
src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx

index bc701619816321a46cbf4179751d2f7af4a3b451..092712c9a4b7499855885f3d0975af4bbe52922f 100644 (file)
@@ -60,8 +60,17 @@ QuadraticPolygon::QuadraticPolygon(const char *file)
         }
       while(1);
   }
-  catch(std::ifstream::failure&)
+  catch(const std::ifstream::failure&)
+  {}
+  catch(const std::exception & ex)
   {
+      if (std::string(ex.what()) == "basic_ios::clear")
+        {
+          //std::cout << "std::ios_base::failure C++11\n";
+        }
+      else {
+          throw ex;
+      }
   }
   front()->changeStartNodeWith(back()->getEndNode());
 }