0026937: Eliminate NO_CXX_EXCEPTION macro support
[occt.git] / src / IntCurve / IntCurve_Polygon2dGen.gxx
index 8f20b5a..b9b1117 100644 (file)
@@ -333,7 +333,7 @@ void IntCurve_Polygon2dGen::Segment(const Standard_Integer theIndex,
   theBegin = ThePnts(TheIndex(theIndex));
   if (theIndex >= NbPntIn) {
     if (!ClosedPolygon)
-      Standard_OutOfRange::Raise("IntCurve_Polygon2dGen::Segment!");
+      throw Standard_OutOfRange("IntCurve_Polygon2dGen::Segment!");
     ind = 0;
   }
   theEnd = ThePnts(TheIndex(ind+1));