Ticket #2842: dynamic_bitset.patch

File dynamic_bitset.patch, 926 bytes (added by zaravalle@…, 13 years ago)

Suggested patch that fixes this ticket

  • boost/dynamic_bitset/dynamic_bitset.hpp

     
    999999    using detail::dynamic_bitset_impl::access_by_blocks;
    10001000    using detail::dynamic_bitset_impl::value_to_type;
    10011001
     1002#if BOOST_WORKAROUND(__GNUC__, == 4) && (__GNUC_MINOR__ >= 3)
     1003    // NOTE: Explicitly qualificationf of "bits_per_block"
     1004    //       breaks compilation on gcc 4.3.3
     1005    const bool no_padding = bits_per_block == CHAR_BIT * sizeof(Block);
     1006#else
    10021007    // NOTE: Explicitly qualifying "bits_per_block" to workaround
    10031008    //       regressions of gcc 3.4.x
    10041009    const bool no_padding =
    10051010        dynamic_bitset<Block, Allocator>::bits_per_block
    10061011        == CHAR_BIT * sizeof(Block);
     1012#endif
    10071013
    10081014    const bool enough_table_width = table_width >= CHAR_BIT;
    10091015