News for hackers. Stuff that matters.
Re:Elements of Modern C++ Style by iam on Saturday October 29, 2011 @11:09AM (#3172026)
Wow that's interesting. Never realized lambdas capture "this" and not the actual data members itself!

That also means you can get in big trouble if the object that got captured was deleted, ouch.

Re:Elements of Modern C++ Style by ajross on Saturday October 29, 2011 @11:18AM (#3172046)
This is why Lisp never had manual allocation. It's a booby trap for a new generation, kind of like the collision between heap allocation and exceptions was in our youth.