I have some code that needs reviewing based on the C++ Co-Routines that were released with C++20.
This is a non trivial update to the language (I am not sure I understand it). If I just put the code in for review I don't believe I would get any meaningful comments. So I want to provide a lot of context and explanation to go with the code (a lot more explanation than code). Hence this question to see if that is OK.
The sections I want to include:
- A description of the overall problem (and how it currently works (boost)).
- A simplified bit of code that simulates the environment (I actually used this to create the code).
- An explanation of how I think Co-Routines work (because this matters in the implementation).
- The code to actually review.
- How that changes the simulation environment to plug it in.
Note the code for review works in both the real and simulated environments the real environment is just way to large to include for a code review.