Opened 9 years ago

Last modified 9 years ago

#9198 new Bugs

boost\boost\crc.hpp warning due to implicit bool cast

Reported by: Frank Heimes <drfghde@…> Owned by: Daryle Walker
Milestone: To Be Determined Component: crc
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

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;

Change History (2)

comment:1 by Frank Heimes <drfghde10@…>, 9 years ago

Mistyped my email address

comment:2 by viboes, 9 years ago

Component: Nonecrc
Owner: set to Daryle Walker
Note: See TracTickets for help on using tickets.