9 Jul
2015
9 Jul
'15
2:38 p.m.
Hi, I need to calc the crc chunkwise (ie. calc crc of a block, then continue with the next block etc.). Is this (not) possible with the boost crc? In other words: how can the type "crc_32_type" be initialized with a user supplied uint32_t value? boost::crc_32_type crc; crc = 0x1234; // <-- this brings compile error crc.process_bytes(buf, len); error: no match for ‘operator=’ (operand types are ‘boost::crc_32_type {aka boost::crc_optimal<32ul, 79764919u, 4294967295u, 4294967295u, true, true>}’ and ‘const uint32_t {aka const unsigned int}’) Thx