The Lambda Coroutine Fiasco
https://github.com/scylladb/seastar/blob/master/doc/lambda-coroutine-fiasco.mdIt's amazing C++23's "deducing this" could solve the lambda coroutine issue, and eliminate the previous C++ voodoo.
44
Upvotes
View all comments
Show parent comment
6
u/moncefm Dec 18 '25
It may not be _too_ hard to write a
is_capture_lambdaconcept:is_lambdaconcept, e.g by parsing the output of__PRETTY_FUNCTION__orboost::type_index(See this for some inspiration)is_lambda<T> && !requires (T t) { +t; };