From: abn Date: Fri, 25 Nov 2016 14:38:36 +0000 (+0100) Subject: Tentative fix for compilation on FED24 ... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fabn%2Fexception;p=tools%2Fmedcoupling.git Tentative fix for compilation on FED24 ... --- diff --git a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx index bc7016198..092712c9a 100644 --- a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx +++ b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx @@ -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()); }