Skip to content

Commit

Permalink
simplify push_back logic
Browse files Browse the repository at this point in the history
  • Loading branch information
unixnme authored and jeking3 committed Dec 28, 2024
1 parent d6eb913 commit b96250c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/boost/dynamic_bitset/dynamic_bitset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -816,8 +816,7 @@ void dynamic_bitset<Block, Allocator>::
push_back(bool bit)
{
const size_type sz = size();
resize(sz + 1);
set(sz, bit);
resize(sz + 1, bit);
}

template <typename Block, typename Allocator>
Expand Down

0 comments on commit b96250c

Please sign in to comment.