Salome HOME
Fix compilation errors using gcc-5.X relating to explicit stream::operator bool()
[plugins/hexablockplugin.git] / src / HEXABLOCKPlugin / HEXABLOCKPlugin_Hypothesis.cxx
index f8e6134c7e2e65a25b92b120820f1acf1a10ae05..b8061a499462e90f053e2c88ede959d78679ac4b 100755 (executable)
@@ -124,7 +124,7 @@ std::istream & HEXABLOCKPlugin_Hypothesis::LoadFrom(std::istream & load)
 //     else
 //         load.clear(ios::badbit | load.rdstate());
     
-    isOK = (load >> i);
+    isOK = static_cast<bool>(load >> i);
     if (isOK)
         hyp_dimension = i;
     else