From becd6078b3c58264966aca5f7f1c10893ed30af6 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Tue, 11 Oct 2022 17:10:39 +0200 Subject: [PATCH] temporarily used value_type&& for brace-init insert --- include/boost/unordered/detail/foa.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index 049dfada..b743cc21 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1112,9 +1112,9 @@ public: return emplace_impl(value_from(std::forward(x))); } - BOOST_FORCEINLINE std::pair insert(init_type&& x) + BOOST_FORCEINLINE std::pair insert(value_type&& x) { - return emplace_impl(std::move(x)); + return emplace_impl(value_from(std::move(x))); } template<