forked from boostorg/container
Fixed Trac #12014: "boost::container::set can not insert const (ref) range"
This commit is contained in:
@@ -79,6 +79,12 @@ int map_test_copyable(boost::container::container_detail::true_type)
|
||||
MyBoostMultiMap &boostmultimap = *pboostmultimap;
|
||||
MyStdMultiMap &stdmultimap = *pstdmultimap;
|
||||
|
||||
//Just to test move aware catch conversions
|
||||
boostmap.insert(boostmap.cbegin(), boostmap.cend());
|
||||
boostmultimap.insert(boostmultimap.cbegin(), boostmultimap.cend());
|
||||
boostmap.insert(boostmap.begin(), boostmap.end());
|
||||
boostmultimap.insert(boostmultimap.begin(), boostmultimap.end());
|
||||
|
||||
int i;
|
||||
for(i = 0; i < max; ++i){
|
||||
{
|
||||
|
||||
@@ -65,6 +65,12 @@ int set_test_copyable(boost::container::container_detail::true_type)
|
||||
MyBoostMultiSet &boostmultiset = *pboostmultiset;
|
||||
MyStdMultiSet &stdmultiset = *pstdmultiset;
|
||||
|
||||
//Just to test move aware catch conversions
|
||||
boostset.insert(boostset.cbegin(), boostset.cend());
|
||||
boostmultiset.insert(boostmultiset.cbegin(), boostmultiset.cend());
|
||||
boostset.insert(boostset.begin(), boostset.end());
|
||||
boostmultiset.insert(boostmultiset.begin(), boostmultiset.end());
|
||||
|
||||
for(int i = 0; i < max; ++i){
|
||||
IntType move_me(i);
|
||||
boostset.insert(boost::move(move_me));
|
||||
|
||||
Reference in New Issue
Block a user