This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: std::vector default default and move constructors
- From: Marc Glisse <marc dot glisse at inria dot fr>
- To: François Dumont <frs dot dumont at gmail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 11 Jan 2018 07:57:11 +0100 (CET)
- Subject: Re: std::vector default default and move constructors
- Authentication-results: sourceware.org; auth=none
- References: <2b48d135-7b0f-f8ec-73f5-15932c2a8581@gmail.com> <d4e95591-30ec-b366-d79e-df8416d44ef1@gmail.com> <1653b9da-8fee-d534-0185-3a63a69d5ca1@gmail.com> <2b6cd500-135a-4d23-9cfd-e064efabdfa7@gmail.com>
- Reply-to: libstdc++ at gcc dot gnu dot org
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.
--
Marc Glisse