Boost logo

Boost Users :

From: Raoul Gough (yg-boost-users_at_[hidden])
Date: 2003-08-18 10:56:12

Hi, I've just noticed that my usage of boost::augmented_crc has
stopped working since upgrading to gcc 3.x. The problem turns out to
be with the workaround extra parameter BOOST_ACRC_DUMMY_PARM_TYPE*.
The usage (in crc.hpp) looks like this:

  template < std::size_t Bits, BOOST_CRC_PARM_TYPE TruncPoly >
      typename uint_t<Bits>::fast augmented_crc( void const *buffer,
      std::size_t byte_count, typename uint_t<Bits>::fast initial_remainder

Which doesn't supply a default value for the fourth parameter (i.e. it
really requires all four parameters). Curiously, there is a
BOOST_ACRC_DUMMY_INIT defined, which would supply a default value,
but it is never used. Is this a bug in crc.hpp?

*This happens for gcc 3.1 and 3.2 because config/compiler/gcc.hpp sets
bug in those versions.

Raoul Gough
"Let there be one measure for wine throughout our kingdom, and one
measure for ale, and one measure for corn" - Magna Carta

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at