* include/bits/vector.tcc (vector::_M_fill_assign): Use _M_swap_data.

From-SVN: r215596
This commit is contained in:
Jonathan Wakely 2014-09-25 13:14:15 +01:00 committed by Jonathan Wakely
parent 755176105f
commit c5b2614754
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2014-09-25 Jonathan Wakely <jwakely@redhat.com>
* include/bits/vector.tcc (vector::_M_fill_assign): Use _M_swap_data.
2014-09-25 Jonathan Wakely <jwakely@redhat.com>
* testsuite/27_io/basic_ios/conv/bool_neg.cc: New.

View File

@ -228,7 +228,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
if (__n > capacity())
{
vector __tmp(__n, __val, _M_get_Tp_allocator());
__tmp.swap(*this);
__tmp._M_impl._M_swap_data(this->_M_impl);
}
else if (__n > size())
{