This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/81017] Class with vector of unique_ptr and std::function does not compile
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 08 Jun 2017 14:28:16 +0000
- Subject: [Bug libstdc++/81017] Class with vector of unique_ptr and std::function does not compile
- Auto-submitted: auto-generated
- References: <bug-81017-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81017
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Thu Jun 8 14:27:45 2017
New Revision: 249018
URL: https://gcc.gnu.org/viewcvs?rev=249018&root=gcc&view=rev
Log:
PR libstdc++/81017 add noexcept to std::function move operations
PR libstdc++/81017
* include/bits/std_function.h (function::function(function&&))
(function::operator=(funtion&&)): Add noexcept.
* testsuite/20_util/function/assign/move.cc: Check for noexcept.
* testsuite/20_util/function/cons/move.cc: Likewise.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/std_function.h
trunk/libstdc++-v3/testsuite/20_util/function/assign/move.cc
trunk/libstdc++-v3/testsuite/20_util/function/cons/move.cc