Re: [Boost-bugs] [Boost C++ Libraries] #2842: dynamic_bitset.hpp fails to compile with g++ (Ubuntu 4.3.3-5ubuntu2) 4.3.3

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2842: dynamic_bitset.hpp fails to compile with g++ (Ubuntu 4.3.3-5ubuntu2) 4.3.3
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-04-30 11:22:20


#2842: dynamic_bitset.hpp fails to compile with g++ (Ubuntu 4.3.3-5ubuntu2) 4.3.3
-------------------------------------+--------------------------------------
  Reporter: solusstutlus_at_[hidden] | Owner: gennaro_prota
      Type: Bugs | Status: new
 Milestone: Boost 1.39.0 | Component: dynamic_bitset
   Version: Boost 1.38.0 | Severity: Regression
Resolution: | Keywords: dynamic_bitset
-------------------------------------+--------------------------------------

Comment(by Zara <zaravalle_at_[hidden]>):

 Solution (apparently) found: The current file documents something
 introduced for GCC 3.4:
>> // NOTE: Explicitly qualifying "bits_per_block" to workaround
>> // regressions of gcc 3.4.x
>> const bool no_padding =
>> dynamic_bitset<Block, Allocator>::bits_per_block
>> == CHAR_BIT * sizeof(Block);

 Removing the explicit qualification compiles with GCC 4.3. To be tested:
 does the compiled object work OK?

>> const bool no_padding = bits_per_block == CHAR_BIT * sizeof(Block);

 HTH

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2842#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC