Subject: [Boost-bugs] [Boost C++ Libraries] #13520: Cant add capture-by-move lambda to channel
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-04-15 14:06:51
#13520: Cant add capture-by-move lambda to channel
------------------------------+---------------------
Reporter: kreuzerkrieg@⦠| Owner: olli
Type: Bugs | Status: new
Milestone: To Be Determined | Component: context
Version: Boost 1.66.0 | Severity: Problem
Keywords: fibers |
------------------------------+---------------------
The following code isnt working if the `test` is move-only
{{{
using task = std::function<void()>;
boost::fibers::buffered_channel<task> ch{1024};
test tst;
ch.push([t{std::move(tst)}]() { t.print(); });
}}}
Full repro:
http://coliru.stacked-crooked.com/a/88dec3ea76a41ea1
-- Ticket URL: <https://svn.boost.org/trac10/ticket/13520> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2018-04-15 14:14:20 UTC