forked from boostorg/container
Fixed in bug in vector::operator==
This commit is contained in:
@@ -285,6 +285,20 @@ int list_test (bool copied_allocators_equal = true)
|
||||
if(!CheckEqualContainers(boostlist, stdlist))
|
||||
return 1;
|
||||
|
||||
//some comparison operators
|
||||
if(!(boostlist == boostlist))
|
||||
return 1;
|
||||
if(boostlist != boostlist)
|
||||
return 1;
|
||||
if(boostlist < boostlist)
|
||||
return 1;
|
||||
if(boostlist > boostlist)
|
||||
return 1;
|
||||
if(!(boostlist <= boostlist))
|
||||
return 1;
|
||||
if(!(boostlist >= boostlist))
|
||||
return 1;
|
||||
|
||||
if(push_data_t::execute(max, boostlist, stdlist)){
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -206,6 +206,20 @@ int map_test()
|
||||
if(!CheckEqualContainers(boostmap2, stdmap2)) return 1;
|
||||
if(!CheckEqualContainers(boostmultimap2, stdmultimap2)) return 1;
|
||||
|
||||
//some comparison operators
|
||||
if(!(boostmap2 == boostmap2))
|
||||
return 1;
|
||||
if(boostmap2 != boostmap2)
|
||||
return 1;
|
||||
if(boostmap2 < boostmap2)
|
||||
return 1;
|
||||
if(boostmap2 > boostmap2)
|
||||
return 1;
|
||||
if(!(boostmap2 <= boostmap2))
|
||||
return 1;
|
||||
if(!(boostmap2 >= boostmap2))
|
||||
return 1;
|
||||
|
||||
::boost::movelib::unique_ptr<MyBoostMap> const pboostmap3 = ::boost::movelib::make_unique<MyBoostMap>
|
||||
( boost::make_move_iterator(&aux_vect[0])
|
||||
, boost::make_move_iterator(&aux_vect[0] + 50));
|
||||
|
||||
+13
-1
@@ -188,7 +188,19 @@ int set_test ()
|
||||
aux_vect3[i] = boost::move(move_me);
|
||||
}
|
||||
|
||||
|
||||
//some comparison operators
|
||||
if(!(boostset2 == boostset2))
|
||||
return 1;
|
||||
if(boostset2 != boostset2)
|
||||
return 1;
|
||||
if(boostset2 < boostset2)
|
||||
return 1;
|
||||
if(boostset2 > boostset2)
|
||||
return 1;
|
||||
if(!(boostset2 <= boostset2))
|
||||
return 1;
|
||||
if(!(boostset2 >= boostset2))
|
||||
return 1;
|
||||
|
||||
::boost::movelib::unique_ptr<MyBoostSet> const pboostset3 = ::boost::movelib::make_unique<MyBoostSet>
|
||||
( ordered_unique_range
|
||||
|
||||
@@ -277,6 +277,20 @@ int vector_test()
|
||||
}
|
||||
if(!test::CheckEqualContainers(boostvector, stdvector)) return 1;
|
||||
|
||||
//some comparison operators
|
||||
if(!(boostvector == boostvector))
|
||||
return 1;
|
||||
if(boostvector != boostvector)
|
||||
return 1;
|
||||
if(boostvector < boostvector)
|
||||
return 1;
|
||||
if(boostvector > boostvector)
|
||||
return 1;
|
||||
if(!(boostvector <= boostvector))
|
||||
return 1;
|
||||
if(!(boostvector >= boostvector))
|
||||
return 1;
|
||||
|
||||
//Test insertion from list
|
||||
{
|
||||
std::list<int> l(50, int(1));
|
||||
|
||||
Reference in New Issue
Block a user