Skip to content

Commit b96250c

Browse files
Unix&Mejeking3
authored andcommitted
simplify push_back logic
1 parent d6eb913 commit b96250c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/boost/dynamic_bitset/dynamic_bitset.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -816,8 +816,7 @@ void dynamic_bitset<Block, Allocator>::
816816
push_back(bool bit)
817817
{
818818
const size_type sz = size();
819-
resize(sz + 1);
820-
set(sz, bit);
819+
resize(sz + 1, bit);
821820
}
822821

823822
template <typename Block, typename Allocator>

0 commit comments

Comments
 (0)