This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Relocation (= move+destroy)
- From: Marc Glisse <marc dot glisse at inria dot fr>
- To: Jonathan Wakely <jwakely at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Mon, 15 Oct 2018 00:37:06 +0200 (CEST)
- Subject: Re: Relocation (= move+destroy)
- References: <alpine.DEB.2.02.1809011549480.12789@stedding.saclay.inria.fr> <alpine.DEB.2.02.1809012146290.16381@stedding.saclay.inria.fr> <20180902200345.GU4149@redhat.com> <alpine.DEB.2.21.1810131047210.27931@stedding.saclay.inria.fr>
On Sat, 13 Oct 2018, Marc Glisse wrote:
+ template<typename _Tp>
+ struct __is_trivially_relocatable
+ : is_trivially_move_constructible<_Tp> { };
Oups, this part is wrong, sorry, it is supposed to be "is_trivial" instead
of "is_trivially_move_constructible", to match what is done elsewhere in
this file. Using is_trivially_move_constructible instead (like libc++) is
a separate issue, and in the particular case of relocation would need to
be combined with is_trivially_destructible.
I'll retest with is_trivial, but I would be very surprised if that broke
anything in the testsuite.
--
Marc Glisse