title: How to use boost::crc?
body: <p>I want to use boost::crc so that it works exactly like <a href="http://www.php.net/manual/en/function.crc32.php" rel="noreferrer">PHP's crc32()</a> function. I tried reading the <a href="http://www.boost.org/doc/libs/1_37_0/libs/crc/crc.html" rel="noreferrer">horrible documentation</a> and many headaches later I haven't made any progress.</p>
  
  <p>Apparently I have to do something like:</p>
  
  <pre><code>int GetCrc32(const string&amp; my_string) {
      return crc_32 = boost::crc&lt;bits, TruncPoly, InitRem, FinalXor,
                     ReflectIn, ReflectRem&gt;(my_string.c_str(), my_string.length());
  }
  </code></pre>
  
  <p><code>bits</code> should be 32.. What the other things are is a mystery. A little help? ;)</p>