[Bug libstdc++/69321] Error on use of non-copyable type with any_cast
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 14 20:08:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69321
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Feb 14 20:08:04 2017
New Revision: 245451
URL: https://gcc.gnu.org/viewcvs?rev=245451&root=gcc&view=rev
Log:
PR69321 fix any_cast<T>(any*) for non-copyable T
Backport from mainline
2017-01-20 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/69321
* include/experimental/any (__any_caster): Avoid instantiating
manager function for types that can't be stored in any.
* testsuite/experimental/any/misc/any_cast.cc: Likewise.
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
More information about the Gcc-bugs
mailing list