[Boost-bugs] [Boost C++ Libraries] #9198: boost\boost\crc.hpp warning due to implicit bool cast

Subject: [Boost-bugs] [Boost C++ Libraries] #9198: boost\boost\crc.hpp warning due to implicit bool cast
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-10-04 09:58:55


#9198: boost\boost\crc.hpp warning due to implicit bool cast
--------------------------------------+------------------------------
 Reporter: Frank Heimes <drfghde@…> | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.54.0
 Severity: Problem | Keywords:
--------------------------------------+------------------------------
 While compiling with Visual Studio 2013 RC, the following warning is
 issued:

 boost\boost\crc.hpp(601): warning C4800: 'unsigned int' : forcing value to
 bool 'true' or 'false' (performance warning)

 ----
 Fix: Change line 601 as follows:

 bool const quotient = (remainder & high_bit_mask) != 0;

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9198>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC