3 ms·
>Then, when the first problems arise, you realize that by using a lambda instead of just an in-place class to capture the context, which you can reason using th
by fluoridation 3y ago
>Then, when the first problems arise, you realize that by using a lambda instead of just an in-place class to capture the context, which you can reason using the same bysantine set of rules, you actually need to grok a whole new set of rules on top of that
No, I don't agree at all. Unless the callee accepts an std::function, passing a lambda is exactly equivalent to passing an ad hoc functor. There's no problem you'll run into with one that you wouldn't have run into with the other.