PR69321 fix any_cast<T>(any*) for non-copyable T
authorJonathan Wakely <jwakely@redhat.com>
Fri, 20 Jan 2017 01:22:54 +0000 (01:22 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 20 Jan 2017 01:22:54 +0000 (01:22 +0000)
commit38a9e5a6c07d84274bc5d345b947d1c13351d590
tree3d61b326d740e796dfbb370ca1db3de644acf9f2
parent01334be4a08330081eb74181faec5fbb4c30bcda
PR69321 fix any_cast<T>(any*) for non-copyable T

PR libstdc++/69321
* include/experimental/any (__any_caster): Avoid instantiating
manager function for types that can't be stored in any.
* include/std/any (__any_caster): Likewise.
* testsuite/20_util/any/misc/any_cast.cc: Test non-copyable type.
* testsuite/experimental/any/misc/any_cast.cc: Likewise.

From-SVN: r244678
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/any
libstdc++-v3/include/std/any
libstdc++-v3/testsuite/20_util/any/misc/any_cast.cc
libstdc++-v3/testsuite/experimental/any/misc/any_cast.cc