* include/bits/vector.tcc (vector::_M_fill_assign): Use _M_swap_data.
authorJonathan Wakely <jwakely@redhat.com>
Thu, 25 Sep 2014 12:14:15 +0000 (13:14 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 25 Sep 2014 12:14:15 +0000 (13:14 +0100)
From-SVN: r215596

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/vector.tcc

index 172fc09f7405dbce2d1739b97487d4690b57cf17..4bbb952f6b556271f730faea5becda92421667e8 100644 (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.
index 5c3dfae9381c3f9c1ba1f475095ec31c2d2dfe5e..4eacec3f5165117cfe8b5299369b789a43c3cbd2 100644 (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())
        {