mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 22:14:26 +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_CHECK_INVARIANT;
|
||||
clear();
|
||||
shrink_to_fit();
|
||||
assign(il.begin(), il.end());
|
||||
return *this;
|
||||
}
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user