top | item 39950050

(no title)

yukIttEft | 1 year ago

I wish there was a way to show the code that is generated when using co_return or co_await

e.g. https://cppinsights.io/lnk?code=Ly8gaHR0cHM6Ly93d3cuc2NzLnN0...

discuss

order

andreasfertig|1 year ago

Sometimes, wishes come true!

Just open the drop-down to select the C++ standard. Below, there is a section "More Transformations". Enable "Show coroutine transformation", and you will get the transformation you're looking for: https://cppinsights.io/s/4d8c3fc1

Disclaimer: I'm the author.

yukIttEft|1 year ago

This is very helpful, thx.