On Thu, 11 Jan 2018, Marc Glisse wrote:

On Thu, 11 Jan 2018, François Dumont wrote:

-       void _M_swap_data(_Vector_impl& __x) _GLIBCXX_NOEXCEPT
+       void
+       _M_swap_data(_Vector_impl_data& __x) _GLIBCXX_NOEXCEPT
       {
         std::swap(_M_start, __x._M_start);
         std::swap(_M_finish, __x._M_finish);
         std::swap(_M_end_of_storage, __x._M_end_of_storage);
       }


I don't remember earlier discussions about this patch, but is this piece of code still needed? std::swap(*this, __x) looks like it should work.

Ah, no, there is a non-trivial move constructor, so forget it. I'll still need to rewrite that function later :-(

--
Marc Glisse

Reply via email to