Erased tab & removed unneeded clear() in assignment

This commit is contained in:
Ion Gaztañaga
2014-08-15 18:13:05 +02:00
parent c03b2357ce
commit dd01853881
2 changed files with 10 additions and 9 deletions

View File

@@ -782,8 +782,6 @@ class stable_vector
stable_vector& operator=(std::initializer_list<value_type> il)
{
STABLE_VECTOR_CHECK_INVARIANT;
clear();
shrink_to_fit();
assign(il.begin(), il.end());
return *this;
}

View File

@@ -216,6 +216,9 @@ int main()
if(!boost::container::test::test_propagate_allocator<stable_vector>())
return 1;
////////////////////////////////////
// Initializer lists testing
////////////////////////////////////
if(!test_methods_with_initializer_list_as_argument())
{
std::cerr << "test_methods_with_initializer_list_as_argument failed" << std::endl;