Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

On a related note, I've run into a similar problem in C++, but opposite effect. A lambda won't keep my object alive if I try to capture a shared_ptr member, because C++ lambdas, similarly to blocks, by default capture implicit reference to "this", rather than individual instance variables.

http://stackoverflow.com/q/7764564/23643



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: