Fixes #117 ("flat_map/map::insert_or_assign with hint has wrong return types")

This commit is contained in:
Ion Gaztañaga
2019-04-23 17:03:09 +02:00
parent 690bb0a852
commit e46210e046
5 changed files with 133 additions and 43 deletions
+20
View File
@@ -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{