This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r222721 - in /trunk/libstdc++-v3: ChangeLog inc...
- From: redi at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Sat, 02 May 2015 12:38:44 -0000
- Subject: r222721 - in /trunk/libstdc++-v3: ChangeLog inc...
Author: redi
Date: Sat May 2 12:38:44 2015
New Revision: 222721
URL: https://gcc.gnu.org/viewcvs?rev=222721&root=gcc&view=rev
Log:
* 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.
Added:
trunk/libstdc++-v3/testsuite/experimental/any/cons/nontrivial.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/experimental/any
trunk/libstdc++-v3/testsuite/experimental/any/misc/any_cast_neg.cc