]> SALOME platform Git repositories - plugins/hexoticplugin.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:11:15 +0000 (14:11 +0300)
committereap <eap@opencascade.com>
Thu, 14 Jan 2016 11:11:15 +0000 (14:11 +0300)
src/HexoticPlugin/HexoticPlugin_Hypothesis.cxx

index 02521250e51deff3dd034fe362a6d1130a4ce3a8..b1b3a63356ea40ab2850e103228c5b3ebde90e83 100644 (file)
@@ -327,7 +327,7 @@ std::istream& HexoticPlugin_Hypothesis::LoadFrom(std::istream& load)
    std::string str1,str2,str3,str4;
 
    //save without any whitespaces!
-   isOK = (load >> str1);
+   isOK = static_cast<bool>(load >> str1);
    if (!(isOK)) {
      //defaults values assumed
      load.clear(std::ios::badbit | load.rdstate());