top | item 23003903

(no title)

alvarelle | 5 years ago

I don't know about the others, but C++ don't have a default implementation as part of the standard. If you want an event loop, you need to use one of the many libraries that provide one.

discuss

order

pjmlp|5 years ago

C++20 surely has one.

alvarelle|5 years ago

No, it hasn't.

Actually C++20 comes with only the minimal support for coroutines in the std library. If you want to do anything useful, you need to implement a promise type yourself which is very hard to do without using one library that does that.