diff --git a/include/boost/unordered/unordered_map.hpp b/include/boost/unordered/unordered_map.hpp index 0ff64fbf..64e5b1fd 100644 --- a/include/boost/unordered/unordered_map.hpp +++ b/include/boost/unordered/unordered_map.hpp @@ -343,7 +343,9 @@ template class unordered_map std::pair try_emplace( BOOST_RV_REF(key_type) k, BOOST_FWD_REF(A0) a0) { - return table_.try_emplace_impl(boost::move(k), boost::forward(a0)); + return table_.try_emplace_impl( + boost::move(k), boost::unordered::detail::create_emplace_args( + boost::forward(a0))); } template @@ -351,7 +353,8 @@ template class unordered_map const_iterator hint, BOOST_RV_REF(key_type) k, BOOST_FWD_REF(A0) a0) { return table_.try_emplace_hint_impl( - hint, boost::move(k), boost::forward(a0)); + hint, boost::move(k), boost::unordered::detail::create_emplace_args( + boost::forward(a0))); } template