mirror of
https://github.com/boostorg/container.git
synced 2025-08-03 14:34:27 +02:00
Erased tab & removed unneeded clear() in assignment
This commit is contained in:
@@ -782,8 +782,6 @@ class stable_vector
|
|||||||
stable_vector& operator=(std::initializer_list<value_type> il)
|
stable_vector& operator=(std::initializer_list<value_type> il)
|
||||||
{
|
{
|
||||||
STABLE_VECTOR_CHECK_INVARIANT;
|
STABLE_VECTOR_CHECK_INVARIANT;
|
||||||
clear();
|
|
||||||
shrink_to_fit();
|
|
||||||
assign(il.begin(), il.end());
|
assign(il.begin(), il.end());
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
@@ -216,6 +216,9 @@ int main()
|
|||||||
if(!boost::container::test::test_propagate_allocator<stable_vector>())
|
if(!boost::container::test::test_propagate_allocator<stable_vector>())
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
////////////////////////////////////
|
||||||
|
// Initializer lists testing
|
||||||
|
////////////////////////////////////
|
||||||
if(!test_methods_with_initializer_list_as_argument())
|
if(!test_methods_with_initializer_list_as_argument())
|
||||||
{
|
{
|
||||||
std::cerr << "test_methods_with_initializer_list_as_argument failed" << std::endl;
|
std::cerr << "test_methods_with_initializer_list_as_argument failed" << std::endl;
|
||||||
|
Reference in New Issue
Block a user