aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2015-05-02 13:38:44 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2015-05-02 13:38:44 +0100
commit9407c6fa534498ea87bbd6640cc212016779cd52 (patch)
treec80d0cd99b2fbf4638ebafad68b347ebb363b39b /gcc/function.c
parent5b244a78dc61f1461882f1a751b047ea81a8c2d5 (diff)
downloadgcc-9407c6fa534498ea87bbd6640cc212016779cd52.zip
gcc-9407c6fa534498ea87bbd6640cc212016779cd52.tar.gz
gcc-9407c6fa534498ea87bbd6640cc212016779cd52.tar.bz2
any (any::_Storage): Make non-copyable.
* include/experimental/any (any::_Storage): Make non-copyable. (any::any): Do not copy _Storage object. (any::operator=): Implement more efficiently than swapping. (any::swap): Use new _Op_xfer operation. (any::_Op::_Op_xfer): New enumerator. (_Manager_internal::_S_alloc): Remove unused function. (_Manager_internal::_S_create, _Manager_external::_S_create): Use out parameter instead of returning a _Storage object. (_Manager_internal::_S_manage, _Manager_external::_S_manage): Add _Op_xfer operation for moving and swapping. * testsuite/experimental/any/cons/nontrivial.cc: New. * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error. From-SVN: r222721
Diffstat (limited to 'gcc/function.c')
0 files changed, 0 insertions, 0 deletions