diff --git a/include/const_list.h b/include/const_list.h index 25a48f3..3329419 100644 --- a/include/const_list.h +++ b/include/const_list.h @@ -439,6 +439,7 @@ namespace cc { auto next = std::next(first2); first1._node->push_before(first2._node); + ++_size; first2 = next; } else { @@ -450,6 +451,7 @@ namespace cc { auto next = std::next(first2); _tail.push_before(first2._node); + ++_size; first2 = next; } @@ -473,6 +475,7 @@ namespace cc { auto next = std::next(first2); first1._node->push_before(first2._node); + ++_size; first2 = next; } else { @@ -484,6 +487,7 @@ namespace cc { auto next = std::next(first2); _tail.push_before(first2._node); + ++_size; first2 = next; }