Hacker News new | ask | show | jobs
by bonzini 2838 days ago
Well, that's what C++ lambdas do. Though C++ has smart pointers to help with lifetime issues.