r238022 - in /trunk/libstdc++-v3: ChangeLog inc...
ville@gcc.gnu.org
ville@gcc.gnu.org
Tue Jul 5 18:33:00 GMT 2016
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
More information about the Libstdc++-cvs
mailing list