Salome HOME
23653: [CEA] SMESH compilation failure: Ubuntu 16 : isnan
authoreap <eap@opencascade.com>
Wed, 19 Dec 2018 14:58:28 +0000 (17:58 +0300)
committereap <eap@opencascade.com>
Wed, 19 Dec 2018 14:58:28 +0000 (17:58 +0300)
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 "SMESH_MeshAlgos.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;
 
   return angle;
     angle = -1;
 
   return angle;