Technical requirements
To build and execute the code examples from this chapter, a compiler that supports C++20 is required. We have used both Clang 18
and GCC 14.2
.
Make sure you use Boost version 1.84 or newer and that your Boost library was compiled with C++20 support. At the time of writing this book, Cobalt support is rather fresh in Boost and not all precompiled distributions may provide this component. The situation will generally improve by the time of reading this book. If, for any reason, the Boost library in your system does not meet these requirements, you have to build it from its source. Compiling with an earlier version, such as C++17, won’t include Boost.Cobalt since it relies heavily on C++20 coroutines.
You can find the complete code in the following GitHub repository:
https://github.com/PacktPublishing/Asynchronous-Programming-with-CPP
The examples for this chapter are located under the Chapter_10
folder.