From: Jonathan Wakely Date: Thu, 25 Sep 2014 12:14:15 +0000 (+0100) Subject: * include/bits/vector.tcc (vector::_M_fill_assign): Use _M_swap_data. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c5b2614754a2c8fc3e03048d56fe328446aab972;p=gcc.git * include/bits/vector.tcc (vector::_M_fill_assign): Use _M_swap_data. From-SVN: r215596 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 172fc09f740..4bbb952f6b5 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2014-09-25 Jonathan Wakely + + * include/bits/vector.tcc (vector::_M_fill_assign): Use _M_swap_data. + 2014-09-25 Jonathan Wakely * testsuite/27_io/basic_ios/conv/bool_neg.cc: New. diff --git a/libstdc++-v3/include/bits/vector.tcc b/libstdc++-v3/include/bits/vector.tcc index 5c3dfae9381..4eacec3f516 100644 --- a/libstdc++-v3/include/bits/vector.tcc +++ b/libstdc++-v3/include/bits/vector.tcc @@ -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()) {