23653: [CEA] SMESH compilation failure: Ubuntu 16 : isnan

This commit is contained in:
eap 2018-12-19 17:58:28 +03:00
parent 05bdaa6d2e
commit 2644464cc2

View File

@ -38,6 +38,7 @@
#include "SMESH_MeshAlgos.hxx" #include "SMESH_MeshAlgos.hxx"
#include "SMESH_PythonDump.hxx" #include "SMESH_PythonDump.hxx"
#include <cmath>
using namespace SMESH; using namespace SMESH;
@ -368,7 +369,7 @@ CORBA::Double Measurements_i::Angle(const SMESH::PointStruct& p1,
catch(...) catch(...)
{ {
} }
if ( isnan( angle )) if ( std::isnan( angle ))
angle = -1; angle = -1;
return angle; return angle;