Technical requirements
For this chapter, you will need a C++20 compiler. For the generator examples, you will need a C++23 compiler. We have tested the examples with GCC 14.1. The code is platform-independent, so even though we have a Linux focus in this book, all the examples should work on macOS and Windows. Please note that Visual Studio 17.11 doesn’t support the C++23 std::generator yet.
The code for this chapter can be found in the book’s GitHub repository: https://github.com/PacktPublishing/Asynchronous-Programming-with-CPP.