mirror of git://gcc.gnu.org/git/gcc.git
* include/bits/vector.tcc (vector::_M_fill_assign): Use _M_swap_data.
From-SVN: r215596
This commit is contained in:
parent
755176105f
commit
c5b2614754
|
|
@ -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>
|
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_neg.cc: New.
|
||||||
|
|
|
||||||
|
|
@ -228,7 +228,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
|
||||||
if (__n > capacity())
|
if (__n > capacity())
|
||||||
{
|
{
|
||||||
vector __tmp(__n, __val, _M_get_Tp_allocator());
|
vector __tmp(__n, __val, _M_get_Tp_allocator());
|
||||||
__tmp.swap(*this);
|
__tmp._M_impl._M_swap_data(this->_M_impl);
|
||||||
}
|
}
|
||||||
else if (__n > size())
|
else if (__n > size())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue