|
Boost Users : |
From: David Brownell (david_brownell_at_[hidden])
Date: 2002-03-29 14:05:30
I have the following code that doesn't compile using VC 7.0. I am
getting many errors in crc.hpp. Am I missing something simple here? I
have just glanced at the manual, so please be gentle with the RTFM
responses :)
TIA,
David Brownell
#include<iostream>
#include "boost\crc.hpp"
int main(void)
{
const unsigned char DATA[] = { 1, 2, 3, 4, 5 };
boost::crc_32_type crc;
crc.reset();
crc.process_bytes(DATA, sizeof(DATA) / sizeof(*DATA));
std::cout << crc.checksum() << std::endl;
return(true);
}
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net