temporarily used value_type&& for brace-init insert

This commit is contained in:
joaquintides
2022-10-11 17:10:39 +02:00
parent e163aa465c
commit becd6078b3

View File

@ -1112,9 +1112,9 @@ public:
return emplace_impl(value_from(std::forward<T>(x))); return emplace_impl(value_from(std::forward<T>(x)));
} }
BOOST_FORCEINLINE std::pair<iterator,bool> insert(init_type&& x) BOOST_FORCEINLINE std::pair<iterator,bool> insert(value_type&& x)
{ {
return emplace_impl(std::move(x)); return emplace_impl(value_from(std::move(x)));
} }
template< template<