From 3df600d06940696c152f01671f2c0fbeeeba9bf8 Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Sun, 19 Feb 2023 21:19:30 -0800 Subject: [PATCH] Remove extraneous construct() overloads from the flat foa-based containers --- include/boost/unordered/unordered_flat_map.hpp | 6 ------ include/boost/unordered/unordered_flat_set.hpp | 6 ------ 2 files changed, 12 deletions(-) diff --git a/include/boost/unordered/unordered_flat_map.hpp b/include/boost/unordered/unordered_flat_map.hpp index 7ceebc40..d419739b 100644 --- a/include/boost/unordered/unordered_flat_map.hpp +++ b/include/boost/unordered/unordered_flat_map.hpp @@ -60,12 +60,6 @@ namespace boost { std::move(const_cast(x.second))}; } - template - static void construct(A& al, element_type* p, moved_type&& x) - { - boost::allocator_construct(al, p, std::move(x)); - } - template static void construct(A& al, element_type* p, Args&&... args) { diff --git a/include/boost/unordered/unordered_flat_set.hpp b/include/boost/unordered/unordered_flat_set.hpp index d88c582c..8317c211 100644 --- a/include/boost/unordered/unordered_flat_set.hpp +++ b/include/boost/unordered/unordered_flat_set.hpp @@ -51,12 +51,6 @@ namespace boost { boost::allocator_construct(al, p, copy); } - template - static void construct(A& al, element_type* p, Key&& x) - { - boost::allocator_construct(al, p, std::move(x)); - } - template static void construct(A& al, element_type* p, Args&&... args) {