Salome HOME
Fix compilation errors using gcc-5.X relating to explicit stream::operator bool()
[modules/smesh.git] / src / StdMeshers / StdMeshers_MaxElementVolume.cxx
index 4ece1400800dae7c94d2ef7fe96fd9cbc2fa70e4..21a4d78a9197b7cbf6386b7a48ad3af8e59127bd 100644 (file)
@@ -116,7 +116,7 @@ istream & StdMeshers_MaxElementVolume::LoadFrom(istream & load)
 {
   bool isOK = true;
   double a;
-  isOK = (load >> a);
+  isOK = static_cast<bool>(load >> a);
   if (isOK)
     this->_maxVolume = a;
   else