Opened 14 years ago

Closed 14 years ago

#2931 closed Bugs (invalid)

boost/dynamic_bitset/dynamic_bitset.hpp fails to compile, seems to have a ) in the wrong place

Reported by: anonymous Owned by: Gennaro Prota
Milestone: Boost 1.39.0 Component: dynamic_bitset
Version: Boost 1.38.0 Severity: Problem
Keywords: Cc:

Description

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...

Change History (1)

comment:1 by Steven Watanabe, 14 years ago

Resolution: invalid
Status: newclosed

In the current code, only one argument is being passed to assert. Look carefully at the positions of the parentheses.

Note: See TracTickets for help on using tickets.