Skip to content

Commit caee95b

Browse files
committed
Make the implementation of find_next() consistent with that of find_next_off()
1 parent c9964a7 commit caee95b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

include/boost/dynamic_bitset/impl/dynamic_bitset.ipp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,10 +1442,9 @@ template< typename Block, typename AllocatorOrContainer >
14421442
BOOST_DYNAMIC_BITSET_CONSTEXPR20 typename dynamic_bitset< Block, AllocatorOrContainer >::size_type
14431443
dynamic_bitset< Block, AllocatorOrContainer >::find_next( size_type pos ) const
14441444
{
1445-
if ( pos == npos ) {
1446-
return npos;
1447-
}
1448-
return find_first( pos + 1 );
1445+
return pos == npos
1446+
? npos
1447+
: find_first( pos + 1 );
14491448
}
14501449

14511450
template< typename Block, typename AllocatorOrContainer >

0 commit comments

Comments
 (0)