Boost C++ Libraries: Ticket #13182: Boost.Fiber ignores lambda captures https://svn.boost.org/trac10/ticket/13182 <p> In version 1.65, the following code doesn't work: </p> <p> boost::fibers::fiber([p=std::make_shared&lt;std::string&gt;("Hi")]{ </p> <blockquote> <p> assert(p); </p> </blockquote> <p> }).detach(); </p> <p> This probably because when you call std::apply(std::move(fn_), std::move( arg_)) in function "worker_context::run_", should have used "fn" and "arg" instead of "fn_" and "arg_". </p> <p> Please look at "boost\fiber\context.hpp" line 428 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13182 Trac 1.4.3 anonymous Thu, 31 Aug 2017 10:01:42 GMT summary changed https://svn.boost.org/trac10/ticket/13182#comment:1 https://svn.boost.org/trac10/ticket/13182#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">Boost.Fiber ignores lambda captures</span> → <span class="trac-field-new">Boost.Fiber ignores lambda captures??</span> </li> </ul> Ticket anonymous Thu, 31 Aug 2017 10:02:15 GMT summary changed https://svn.boost.org/trac10/ticket/13182#comment:2 https://svn.boost.org/trac10/ticket/13182#comment:2 <ul> <li><strong>summary</strong> <span class="trac-field-old">Boost.Fiber ignores lambda captures??</span> → <span class="trac-field-new">Boost.Fiber ignores lambda captures</span> </li> </ul> Ticket