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 45f5f0b..e6e5493 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;