This is the mail archive of the
libstdc++-cvs@gcc.gnu.org
mailing list for the libstdc++ project.
r245458 - in /branches/gcc-5-branch/libstdc++-v...
- From: redi at gcc dot gnu dot org
- To: libstdc++-cvs at gcc dot gnu dot org
- Date: Tue, 14 Feb 2017 21:17:34 -0000
- Subject: r245458 - in /branches/gcc-5-branch/libstdc++-v...
Author: redi
Date: Tue Feb 14 21:17:34 2017
New Revision: 245458
URL: https://gcc.gnu.org/viewcvs?rev=245458&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.
* testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
Modified:
branches/gcc-5-branch/libstdc++-v3/ChangeLog
branches/gcc-5-branch/libstdc++-v3/include/experimental/any
branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/any/misc/any_cast.cc
branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/any/misc/any_cast_neg.cc