[Boost-bugs] [Boost C++ Libraries] #2931: boost/dynamic_bitset/dynamic_bitset.hpp fails to compile, seems to have a ) in the wrong place

Subject: [Boost-bugs] [Boost C++ Libraries] #2931: boost/dynamic_bitset/dynamic_bitset.hpp fails to compile, seems to have a ) in the wrong place
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-04-09 14:12:37


#2931: boost/dynamic_bitset/dynamic_bitset.hpp fails to compile, seems to have a )
in the wrong place
--------------------------+-------------------------------------------------
 Reporter: anonymous | Owner: gennaro_prota
     Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: dynamic_bitset
  Version: Boost 1.38.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 Around line 81, the code is:

         reference(block_type & b, block_type pos)
             :m_block(b),
              m_mask( (assert(pos < bits_per_block),
                       block_type(1) << pos )
              )
 This fails to compile. Should it not instead be

         reference(block_type & b, block_type pos)
             :m_block(b),
              m_mask( (assert(pos < bits_per_block)),
                       block_type(1) << pos )

 As last time I checked, assert took exactly one parameter...

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2931>
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