C++ Coroutines - Don’t Try This at Home - Lieven de Cock - ACCU 2024

  Рет қаралды 2,282

ACCU Conference

ACCU Conference

Күн бұрын

Пікірлер: 5
@Voy2378
@Voy2378 Ай бұрын
40:50 : doing increment in begins seems buggy since I see no reason why one should be banned from calling begin multiple times.
@Roibarkan
@Roibarkan Ай бұрын
59:43 🤓 I actually think await_resume() is actually always called before returning to the coroutine (even when await_ready() returns true, or await_resume() chooses not to suspend, by returning true or the coroutine handle it received)
@Roibarkan
@Roibarkan Ай бұрын
35:03 If I understand correctly, the compiler will agree to compile code where the promise type doesn’t implement return_void(), but in such a case it’s undefined behavior for the coroutine to reach the end of its scope (it has to be destroyed via coroutine_handle::destroy() before reaching the end of its scope).
@Roibarkan
@Roibarkan Ай бұрын
The wording in the standard (8.7.5.3): If a search for the name return_void in the scope of the promise type finds any declarations, flowing off the end of a coroutine's function-body is equivalent to a co_return with no operand; otherwise flowing off the end of a coroutine's function-body results in undefined behavior.
@andreaszoufal1048
@andreaszoufal1048 Ай бұрын
Hi Lieven, just stumbled over this video, I will enjoy it later, for sure! We both worked together on a project, if you remember that time! Greetings from Austria, BR Andi
風船をキャッチしろ!🎈 Balloon catch Challenges
00:57
はじめしゃちょー(hajime)
Рет қаралды 96 МЛН
PyData Meetup November 2024
1:20:16
Base42 Skopje
Рет қаралды 62
0xRust Event
1:50:29
0xA Science Association
Рет қаралды 32
C++ #include on a Diet - Gabriel Diaconita - ACCU 2024
1:00:07
ACCU Conference
Рет қаралды 870
Data Structures: Lecture 27 - Hashing and Hash Tables
46:00
Zack Teaching
Рет қаралды 61