From 27f31f94a3488ae31c157a2b1335bf71a407debf Mon Sep 17 00:00:00 2001 From: abn Date: Fri, 25 Nov 2016 15:38:36 +0100 Subject: [PATCH] Tentative fix for compilation on FED24 ... --- .../Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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()); } -- 2.39.2