From 8de4b1a3c4dfd40daacbdf30cf0e62e4080f067d Mon Sep 17 00:00:00 2001 From: cyborg1811m Date: Thu, 8 Feb 2024 19:46:17 +0100 Subject: [PATCH] const_list: fixed size in merge --- include/const_list.h | 4 ++++ 1 file changed, 4 insertions(+) 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; }