This is the mail archive of the
libstdc++-cvs@gcc.gnu.org
mailing list for the libstdc++ project.
r241252 - in /branches/gcc-6-branch/libstdc++-v...
- From: redi at gcc dot gnu dot org
- To: libstdc++-cvs at gcc dot gnu dot org
- Date: Mon, 17 Oct 2016 16:50:53 -0000
- Subject: r241252 - in /branches/gcc-6-branch/libstdc++-v...
Author: redi
Date: Mon Oct 17 16:50:53 2016
New Revision: 241252
URL: https://gcc.gnu.org/viewcvs?rev=241252&root=gcc&view=rev
Log:
Add noexcept to std::function swap
Backport from mainline:
2016-08-22 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/77322
* doc/xml/manual/intro.xml: Document DR 2062 change.
* include/std/functional (function::swap): Add noexcept.
(swap(function<Res(Args...)&, function<Res(Args...)&)): Likewise.
* testsuite/20_util/function/77322.cc: New test.
Added:
branches/gcc-6-branch/libstdc++-v3/testsuite/20_util/function/77322.cc
Modified:
branches/gcc-6-branch/libstdc++-v3/ChangeLog
branches/gcc-6-branch/libstdc++-v3/doc/xml/manual/intro.xml
branches/gcc-6-branch/libstdc++-v3/include/std/functional