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++/81017] Class with vector of unique_ptr and std::function does not compile


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

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Sep  4 16:52:20 2017
New Revision: 251674

URL: https://gcc.gnu.org/viewcvs?rev=251674&root=gcc&view=rev
Log:
PR libstdc++/81017 add noexcept to std::function move operations

Backport from mainline
2017-06-08  Jonathan Wakely  <jwakely@redhat.com>

        PR libstdc++/81017
        * include/std/functional (function::function(function&&))
        (function::operator=(function&&)): Add noexcept.
        * testsuite/20_util/function/assign/move.cc: Check for noexcept.
        * testsuite/20_util/function/cons/move.cc: Likewise.

Modified:
    branches/gcc-6-branch/libstdc++-v3/ChangeLog
    branches/gcc-6-branch/libstdc++-v3/include/std/functional
   
branches/gcc-6-branch/libstdc++-v3/testsuite/20_util/function/assign/move.cc
    branches/gcc-6-branch/libstdc++-v3/testsuite/20_util/function/cons/move.cc

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