This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3 PATCH] Implement LWG 2509
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: Ville Voutilainen <ville dot voutilainen at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Tue, 5 Jul 2016 19:15:30 +0100
- Subject: Re: [v3 PATCH] Implement LWG 2509
- Authentication-results: sourceware.org; auth=none
- References: <CAFk2RUZnAtyUt89mdVPmd7=z3i-GtOmrdR2_jVwQkCapfzS4jA@mail.gmail.com>
On 05/07/16 20:33 +0300, Ville Voutilainen wrote:
Implement LWG 2509,
any_cast doesn't work with rvalue reference targets and cannot
move with a value target.
* include/experimental/any (any(_ValueType&&)): Constrain and
add an overload that doesn't forward.
* include/experimental/any (any_cast(any&&)): Constrain and
add an overload that moves.
Don't repeat the filename for two changes in the same file, it should
be:
* include/experimental/any (any(_ValueType&&)): Constrain and
add an overload that doesn't forward.
(any_cast(any&&)): Constrain and add an overload that moves.
OK with that tweak to the changelog, thanks.