1
0
Fork 0

Obsolete: dynamic exception

This commit is contained in:
Scott Giese 2019-12-15 16:39:49 -06:00
parent a14923cea0
commit 51f6a25a04

View file

@ -166,10 +166,11 @@ FGModelMgr::unbind ()
namespace namespace
{ {
double testNan(double val) throw (sg_range_exception) double testNan(double val)
{ {
if (SGMisc<double>::isNaN(val)) if (SGMisc<double>::isNaN(val))
throw sg_range_exception("value is nan"); throw sg_range_exception("value is nan");
return val; return val;
} }