From: eap Date: Thu, 14 Jan 2016 11:11:15 +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=7563cf9b3a507ac5444bb74acf09f2f9dea938f2;p=plugins%2Fhexoticplugin.git Fix compilation errors using gcc-5.X relating to explicit stream::operator bool() --- diff --git a/src/HexoticPlugin/HexoticPlugin_Hypothesis.cxx b/src/HexoticPlugin/HexoticPlugin_Hypothesis.cxx index 0252125..b1b3a63 100644 --- a/src/HexoticPlugin/HexoticPlugin_Hypothesis.cxx +++ b/src/HexoticPlugin/HexoticPlugin_Hypothesis.cxx @@ -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(load >> str1); if (!(isOK)) { //defaults values assumed load.clear(std::ios::badbit | load.rdstate());