| ▲ | einpoklum 4 hours ago | |||||||
> This problem doesn't arise with C++ lambdas because you pass them around as special objects, not as bare function pointers. If they don't capture anything, I believe you _can_ pass them as bare function pointers. | ||||||||
| ▲ | lpribis 3 hours ago | parent [-] | |||||||
Sure, but in that case they are equivalent to a static function so there's no benefit of lambda other than syntax sugar. | ||||||||
| ||||||||