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^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3bf741cda7defacf2ecd1626fa5ea777f9d32c21;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