diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index abcf800a..209f063b 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1045,9 +1045,10 @@ public: std::forward_as_tuple(std::forward(args)...)); } - BOOST_FORCEINLINE std::pair insert(const init_type& x) + template + BOOST_FORCEINLINE std::pair insert(T&& x) { - return emplace_impl(x); + return emplace_impl(std::forward(x)); } BOOST_FORCEINLINE std::pair insert(init_type&& x)