From c487f246116a7409300318b9af8c55173bca2cf1 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Wed, 28 Sep 2022 13:55:44 +0200 Subject: [PATCH] honored select_on_container_copy_construction --- include/boost/unordered/detail/foa.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index 5f4e4fc0..0ace17c4 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -534,7 +534,8 @@ public: h{h_},pred{pred_},al{al_},size_{0},arrays{new_arrays(n)},ml{max_load()} {} - table(const table& x):table(x,x.al){} + table(const table& x): + table(x,alloc_traits::select_on_container_copy_construction(x.al)){} table(table&& x) noexcept(