From 51f6a25a041275873a2d94fc583faa8b0241a897 Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Sun, 15 Dec 2019 16:39:49 -0600 Subject: [PATCH] Obsolete: dynamic exception --- src/Model/modelmgr.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/modelmgr.cxx b/src/Model/modelmgr.cxx index f70f8918a..ed3e2df49 100644 --- a/src/Model/modelmgr.cxx +++ b/src/Model/modelmgr.cxx @@ -166,10 +166,11 @@ FGModelMgr::unbind () namespace { -double testNan(double val) throw (sg_range_exception) +double testNan(double val) { if (SGMisc::isNaN(val)) throw sg_range_exception("value is nan"); + return val; }