Well, if i think about it then they aren't that useful either, one can't pass around lambda functions, because captured variables will point to garbage, once the enclosing scope has vanished; on the other hand lambda functions are less verbose when passed as stl functors.
no subject
Date: 2013-10-11 02:57 am (UTC)Well, if i think about it then they aren't that useful either, one can't pass around lambda functions, because captured variables will point to garbage, once the enclosing scope has vanished; on the other hand lambda functions are less verbose when passed as stl functors.