r/cpp • • Dec 18 '25

The Lambda Coroutine Fiasco

https://github.com/scylladb/seastar/blob/master/doc/lambda-coroutine-fiasco.md

It's amazing C++23's "deducing this" could solve the lambda coroutine issue, and eliminate the previous C++ voodoo.

44 Upvotes

22 comments sorted by

View all comments

Show parent comment

-1

u/James20k P2005R0 Dec 18 '25

The only way to fix that safely would be for C++ to have adopted a lifetimes system