]> SALOME platform Git repositories - plugins/ghs3dprlplugin.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:02:55 +0000 (14:02 +0300)
committereap <eap@opencascade.com>
Thu, 14 Jan 2016 11:02:55 +0000 (14:02 +0300)
src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.cxx

index 32a9c1fa0f22a1c9d9da8c365349fdecbd997ef1..b284452d5fbdd313b527467de881af7f77a5dfa9 100755 (executable)
@@ -189,7 +189,7 @@ std::istream& GHS3DPRLPlugin_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());