From dea6ce164c04c2258dada82c9f01d3ad45b2910e Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Mon, 12 Sep 2022 09:55:34 -0700 Subject: [PATCH] Remove erroneous unconditional call to reserve() from move_assign() when pocma is false --- include/boost/unordered/detail/implementation.hpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/boost/unordered/detail/implementation.hpp b/include/boost/unordered/detail/implementation.hpp index fad51a64..3756a50f 100644 --- a/include/boost/unordered/detail/implementation.hpp +++ b/include/boost/unordered/detail/implementation.hpp @@ -2374,10 +2374,6 @@ namespace boost { template void move_assign(table& x, UniqueType is_unique, false_type) { - if (x.size_ > 0) { - reserve(x.size_); - } - if (node_alloc() == x.node_alloc()) { move_assign_equal_alloc(x); } else {