From b6e3f2303ff50d6474842dffc024bfde994993df Mon Sep 17 00:00:00 2001 From: Daniel James Date: Wed, 1 Mar 2017 00:13:02 +0000 Subject: [PATCH] Fix call to try_emplace_impl --- include/boost/unordered/unordered_map.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/boost/unordered/unordered_map.hpp b/include/boost/unordered/unordered_map.hpp index 0ff64fbf0a..64e5b1fdf8 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