From: eap Date: Thu, 14 Jan 2016 11:08:36 +0000 (+0300) Subject: Fix compilation errors using gcc-5.X relating to explicit stream::operator bool() X-Git-Tag: V7_8_0a1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=422b785323cd5d97b443444a458caa2bd4abd4f5;p=plugins%2Fhexablockplugin.git Fix compilation errors using gcc-5.X relating to explicit stream::operator bool() --- diff --git a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis.cxx b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis.cxx index f8e6134..b8061a4 100755 --- a/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis.cxx +++ b/src/HEXABLOCKPlugin/HEXABLOCKPlugin_Hypothesis.cxx @@ -124,7 +124,7 @@ std::istream & HEXABLOCKPlugin_Hypothesis::LoadFrom(std::istream & load) // else // load.clear(ios::badbit | load.rdstate()); - isOK = (load >> i); + isOK = static_cast(load >> i); if (isOK) hyp_dimension = i; else