1Upstream Patch for Unordered
2
3Prevent erroneous copying of groups data, update max load to properly propagate
4
5Signed-off-by: Michael Nosthoff <buildroot@heine.tech>
6Upstream: https://github.com/boostorg/unordered/commit/067884a4e213352e7c81c441f1453c54735c39f3
7diff --git a/include/boost/unordered/detail/foa/core.hpp b/include/boost/unordered/detail/foa/core.hpp
8index 239d05d3..7ae9f2c8 100644
9--- a/boost/unordered/detail/foa/core.hpp
10+++ b/boost/unordered/detail/foa/core.hpp
11@@ -1870,9 +1870,10 @@ private:
12
13   void fast_copy_elements_from(const table_core& x)
14   {
15-    if(arrays.elements){
16+    if(arrays.elements&&x.arrays.elements){
17       copy_elements_array_from(x);
18       copy_groups_array_from(x);
19+      size_ctrl.ml=std::size_t(x.size_ctrl.ml);
20       size_ctrl.size=std::size_t(x.size_ctrl.size);
21     }
22   }
23