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

C++0x managed to add closures without adding GC. The only issue is that if you want to the closure to outlive the current stack frame you have to capture by value ([=] rather than [&]) or use a shared_ptr (which is then copied by value).


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

Search: