r238025 - in /branches/gcc-6-branch/libstdc++-v...
ville@gcc.gnu.org
ville@gcc.gnu.org
Tue Jul 5 20:06:00 GMT 2016
Author: ville
Date: Tue Jul 5 20:06:31 2016
New Revision: 238025
URL: https://gcc.gnu.org/viewcvs?rev=238025&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:
branches/gcc-6-branch/libstdc++-v3/ChangeLog
branches/gcc-6-branch/libstdc++-v3/include/experimental/any
branches/gcc-6-branch/libstdc++-v3/testsuite/experimental/any/misc/any_cast.cc
branches/gcc-6-branch/libstdc++-v3/testsuite/experimental/any/misc/any_cast_neg.cc
More information about the Gcc-cvs
mailing list