Implement LWG 2509,
commitf5fc5a5ab452d674f2b0b6add41563c18f91e32f
authorville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Jul 2016 18:33:18 +0000 (5 18:33 +0000)
committerville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Jul 2016 18:33:18 +0000 (5 18:33 +0000)
treebac6ae817f1101d9ed774592f2b848b5c7ffea8f
parentfaee03ad3edfba9a7edaf7af2a981edda874b516
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238022 138bc75d-0d04-0410-961f-82ee72b054a4
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