Salome HOME
Fix compilation errors using gcc-5.X relating to explicit stream::operator bool()
[plugins/ghs3dprlplugin.git] / 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());