Commit c5b26147 by Jonathan Wakely Committed by Jonathan Wakely

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

From-SVN: r215596
parent 75517610
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.
* testsuite/27_io/basic_ios/conv/bool.cc: New.
* testsuite/27_io/basic_ios/conv/voidptr.cc: New.
......
......@@ -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())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment