From 433aa3a7a109103de2a197de85a8f805b25802ab Mon Sep 17 00:00:00 2001 From: Unix&Me Date: Tue, 5 Jul 2022 17:53:40 -0400 Subject: [PATCH] simplify push_back logic --- include/boost/dynamic_bitset/dynamic_bitset.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/boost/dynamic_bitset/dynamic_bitset.hpp b/include/boost/dynamic_bitset/dynamic_bitset.hpp index a2abfc93..5003825b 100644 --- a/include/boost/dynamic_bitset/dynamic_bitset.hpp +++ b/include/boost/dynamic_bitset/dynamic_bitset.hpp @@ -815,8 +815,7 @@ void dynamic_bitset:: push_back(bool bit) { const size_type sz = size(); - resize(sz + 1); - set(sz, bit); + resize(sz + 1, bit); } template