Boost C++ Libraries: Ticket #9383: augmented_crc example fails https://svn.boost.org/trac10/ticket/9383 <p> I just built Boost 1.55.0 with VS 2008. Runs, but the example from </p> <p> <a href="http://www.boost.org/doc/libs/1_55_0/libs/crc/crc.html#crc_func">http://www.boost.org/doc/libs/1_55_0/libs/crc/crc.html#crc_func</a> </p> <p> fails. </p> <p> Source: </p> <pre class="wiki">// boost_ending.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include &lt;boost/crc.hpp&gt; // for boost::crc_basic, boost::augmented_crc #include &lt;boost/cstdint.hpp&gt; // for boost::uint16_t #include &lt;cassert&gt; // for assert #include &lt;iostream&gt; // for std::cout #include &lt;ostream&gt; // for std::endl // Main function int _tmain(int argc, _TCHAR* argv[]) { using boost::uint16_t; using boost::augmented_crc; uint16_t data[6] = { 2, 4, 31, 67, 98, 0 }; uint16_t const init_rem = 0x123; uint16_t crc1 = augmented_crc&lt;16, 0x8005&gt;( data, sizeof(data), init_rem ); uint16_t const zero = 0; uint16_t const new_init_rem = augmented_crc&lt;16, 0x8005&gt;( &amp;zero, sizeof(zero) ); boost::crc_basic&lt;16&gt; crc2( 0x8005, new_init_rem ); crc2.process_block( data, &amp;data[5] ); // don't include CRC std::cout &lt;&lt; "crc2: " &lt;&lt; crc2.checksum() &lt;&lt; std::endl; std::cout &lt;&lt; "crc1: " &lt;&lt; crc1 &lt;&lt; std::endl; assert( crc2.checksum() == crc1 ); std::cout &lt;&lt; "All tests passed." &lt;&lt; std::endl; std::cin.ignore(); return 0; } </pre><p> Output: </p> <pre class="wiki">crc2: 22581 crc1: 36743 Assertion failed: crc2.checksum() == crc1, file boost_ending.cpp, line 33 </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9383 Trac 1.4.3