Boost logo

Boost :

Subject: [boost] crc.hpp:569 msvc warning C4800
From: Kenneth Porter (shiva_at_[hidden])
Date: 2019-04-13 19:35:51


<https://github.com/boostorg/crc/pull/2>

Visual Studio 2010-2019 issue this warning for crc.hpp line 569:

warning C4800: "'int' : forcing value to bool 'true' or 'false'
(performance warning)

            bool const quotient = remainder & high_bit_mask;

Replace with:

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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk