forked from boostorg/container
Fixes #117 ("flat_map/map::insert_or_assign with hint has wrong return types")
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include <boost/container/detail/pair.hpp>
|
||||
#include <boost/container/detail/mpl.hpp>
|
||||
#include <boost/move/unique_ptr.hpp>
|
||||
#include <boost/move/utility_core.hpp>
|
||||
|
||||
#include <cstddef>
|
||||
#include <boost/container/detail/iterator.hpp>
|
||||
@@ -130,6 +131,25 @@ struct equal_transparent
|
||||
}
|
||||
};
|
||||
|
||||
struct move_op
|
||||
{
|
||||
template<class T>
|
||||
typename boost::move_detail::add_rvalue_reference<T>::type operator()(T &t)
|
||||
{
|
||||
return boost::move(t);
|
||||
}
|
||||
};
|
||||
|
||||
struct const_ref_op
|
||||
{
|
||||
template<class T>
|
||||
const T & operator()(const T &t)
|
||||
{
|
||||
return t;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
} //namespace test{
|
||||
} //namespace container {
|
||||
} //namespace boost{
|
||||
|
||||
Reference in New Issue
Block a user