Creating a task completion source for a C++ coroutine 2--Raymond Chen
The series continue.
Creating a task completion source for a C++ coroutine: Producing a result with references
by Raymond Chen
From the article:
Last time, we created a result_holder that can be awaited until it is assigned a result, and I noted that the code was broken.
One of the reasons that it’s broken is that it doesn’t handle references properly...