Salome HOME
Fix compilation errors using gcc-5.X relating to explicit stream::operator bool()
[plugins/netgenplugin.git] / src / NETGENPlugin / NETGENPlugin_SimpleHypothesis_3D.cxx
index f52119c926e951803967c4cede4b10a4a28d2a21..113e4e4e349550fbd500a5fd528703cda636a3bb 100644 (file)
@@ -106,7 +106,7 @@ istream & NETGENPlugin_SimpleHypothesis_3D::LoadFrom(istream & load)
   bool isOK = true;
   double val;
 
-  isOK = (load >> val);
+  isOK = static_cast<bool>(load >> val);
   if (isOK)
     _volume = val;
   else