made one overload of insert generic so that value_type is accepted

This commit is contained in:
joaquintides
2022-10-05 20:38:51 +02:00
parent 7c8045aab5
commit b86143de46

View File

@ -1045,9 +1045,10 @@ public:
std::forward_as_tuple(std::forward<Args>(args)...)); std::forward_as_tuple(std::forward<Args>(args)...));
} }
BOOST_FORCEINLINE std::pair<iterator,bool> insert(const init_type& x) template<typename T>
BOOST_FORCEINLINE std::pair<iterator,bool> insert(T&& x)
{ {
return emplace_impl(x); return emplace_impl(std::forward<T>(x));
} }
BOOST_FORCEINLINE std::pair<iterator,bool> insert(init_type&& x) BOOST_FORCEINLINE std::pair<iterator,bool> insert(init_type&& x)