mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-19 04:12:09 +00:00
Don't test for Tr::eq( c, one ) twice in init_from_string()
This commit is contained in:
@@ -2071,10 +2071,10 @@ dynamic_bitset< Block, AllocatorOrContainer >::init_from_string(
|
||||
for ( ; i < m; ++i ) {
|
||||
const CharT c = s[ ( pos + m - 1 ) - i ];
|
||||
|
||||
BOOST_ASSERT( Tr::eq( c, one ) || Tr::eq( c, BOOST_DYNAMIC_BITSET_WIDEN_CHAR( fac, '0' ) ) );
|
||||
|
||||
if ( Tr::eq( c, one ) ) {
|
||||
set( i );
|
||||
} else {
|
||||
BOOST_ASSERT( Tr::eq( c, BOOST_DYNAMIC_BITSET_WIDEN_CHAR( fac, '0' ) ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user