Implement LWG 2509,
authorVille Voutilainen <ville.voutilainen@gmail.com>
Tue, 5 Jul 2016 18:33:18 +0000 (21:33 +0300)
committerVille Voutilainen <ville@gcc.gnu.org>
Tue, 5 Jul 2016 18:33:18 +0000 (21:33 +0300)
commit7d4f48b5b85b20df4f1acc19a3f1326d37a8bf6a
treebac6ae817f1101d9ed774592f2b848b5c7ffea8f
parent98d44e93bfde113ced834cc65dd9d11231a94114
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.

From-SVN: r238022
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/any
libstdc++-v3/testsuite/experimental/any/misc/any_cast.cc
libstdc++-v3/testsuite/experimental/any/misc/any_cast_neg.cc