Salome HOME
23653: [CEA] SMESH compilation failure: Ubuntu 16 : isnan
[modules/smesh.git] / src / SMESH_I / SMESH_Measurements_i.cxx
index 45f5f0b7fd3c60f11988d47d950e25fcd003221b..e6e5493fa14de37ac35ec6d9a981ff395eee220d 100644 (file)
@@ -38,6 +38,7 @@
 #include "SMESH_MeshAlgos.hxx"
 #include "SMESH_PythonDump.hxx"
 
+#include <cmath>
 
 using namespace SMESH;
 
@@ -368,7 +369,7 @@ CORBA::Double Measurements_i::Angle(const SMESH::PointStruct& p1,
   catch(...)
   {
   }
-  if ( isnan( angle ))
+  if ( std::isnan( angle ))
     angle = -1;
 
   return angle;