Boost logo

Boost Users :

Subject: [Boost-users] Problems with boost::coroutines with lambda captures
From: Mikhail Strelnikov (mikhail.strelnikov_at_[hidden])
Date: 2015-09-16 20:44:55


> Sumamry: somehow the captured smart pointer gets destroyed+corrupted
> when I yield from the coroutine, but the local copy survives. When I use

GeneratorBlockEnumerator gets parameter (std::function) by value (temporary
function gets created before constructor and destroyed right after). Then
this temporary function passed by reference to push_type.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net