]> SALOME platform Git repositories - plugins/hexablockplugin.git/commitdiff
Salome HOME
Fix compilation errors using gcc-5.X relating to explicit stream::operator bool() V7_8_0a1
authoreap <eap@opencascade.com>
Thu, 14 Jan 2016 11:08:36 +0000 (14:08 +0300)
committereap <eap@opencascade.com>
Thu, 14 Jan 2016 11:08:36 +0000 (14:08 +0300)
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