r241479 - in /trunk/libstdc++-v3: ChangeLog inc...

ville@gcc.gnu.org ville@gcc.gnu.org
Mon Oct 24 13:22:00 GMT 2016


Author: ville
Date: Mon Oct 24 13:22:11 2016
New Revision: 241479

URL: https://gcc.gnu.org/viewcvs?rev=241479&root=gcc&view=rev
Log:
Cross-port exception-safety and move fixes of std::any to
std::experimental::any.
* include/experimental/any (operator=(const any&)):
Make strongly exception-safe.
(operator=(any&&)): clear() unconditionally in the case where
rhs has a value.
(_Manager_internal<_Tp>::_S_manage): Move in _Op_xfer, don't copy.
* testsuite/experimental/any/assign/2.cc: Adjust.
* testsuite/experimental/any/assign/exception.cc: New.
* testsuite/experimental/any/cons/2.cc: Adjust.
* testsuite/experimental/any/misc/any_cast_neg.cc: Ajust.

Added:
    trunk/libstdc++-v3/testsuite/experimental/any/assign/exception.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/experimental/any
    trunk/libstdc++-v3/testsuite/experimental/any/assign/2.cc
    trunk/libstdc++-v3/testsuite/experimental/any/cons/2.cc
    trunk/libstdc++-v3/testsuite/experimental/any/misc/any_cast_neg.cc



More information about the Libstdc++-cvs mailing list