This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/77322] [C++11] std::function::swap should be noexcept.


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77322

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Oct 17 17:03:31 2016
New Revision: 241266

URL: https://gcc.gnu.org/viewcvs?rev=241266&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-5-branch/libstdc++-v3/testsuite/20_util/function/77322.cc
Modified:
    branches/gcc-5-branch/libstdc++-v3/ChangeLog
    branches/gcc-5-branch/libstdc++-v3/doc/xml/manual/intro.xml
    branches/gcc-5-branch/libstdc++-v3/include/std/functional

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]