mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-19 04:12:09 +00:00
Assert on the precondition to pop_back()
This commit is contained in:
@@ -793,6 +793,7 @@ template <typename Block, typename Allocator>
|
||||
void dynamic_bitset<Block, Allocator>::
|
||||
pop_back()
|
||||
{
|
||||
BOOST_ASSERT( !empty() );
|
||||
const size_type old_num_blocks = num_blocks();
|
||||
const size_type required_blocks = calc_num_blocks(m_num_bits - 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user