Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mathias_10gen
on July 22, 2010
|
parent
|
context
|
favorite
| on:
How to design a replacement for C++
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: