From: eap Date: Thu, 14 Jan 2016 11:02:55 +0000 (+0300) Subject: Fix compilation errors using gcc-5.X relating to explicit stream::operator bool() X-Git-Tag: V7_8_0a1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=75c98026cea74f1a445037bc6049f34d04fba2d3;p=plugins%2Fghs3dprlplugin.git Fix compilation errors using gcc-5.X relating to explicit stream::operator bool() --- diff --git a/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.cxx b/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.cxx index 32a9c1f..b284452 100755 --- a/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.cxx +++ b/src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.cxx @@ -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(load >> str1); if (!(isOK)) { //defaults values assumed load.clear(std::ios::badbit | load.rdstate());