This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r238022 - in /trunk/libstdc++-v3: ChangeLog inc...
- From: ville at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 05 Jul 2016 18:33:18 -0000
- Subject: r238022 - in /trunk/libstdc++-v3: ChangeLog inc...
Author: ville
Date: Tue Jul 5 18:33:18 2016
New Revision: 238022
URL: https://gcc.gnu.org/viewcvs?rev=238022&root=gcc&view=rev
Log:
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.
(any_cast(any&&)): Constrain and add an overload that moves.
* testsuite/experimental/any/misc/any_cast.cc: Add tests for
the functionality added by LWG 2509.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/experimental/any
trunk/libstdc++-v3/testsuite/experimental/any/misc/any_cast.cc
trunk/libstdc++-v3/testsuite/experimental/any/misc/any_cast_neg.cc