Go through the following steps to follow the recipe:
- From a new Terminal, run the following to download the source code:
> cd ~/
> git clone https://github.com/PacktPublishing/Advanced-CPP-CookBook.git
> cd Advanced-CPP-CookBook/chapter07
- To compile the source code, run the following:
> cmake -DCMAKE_BUILD_TYPE=ASAN ..
> make recipe02_examples
- Once the source code is compiled, you can execute each example in this recipe by running the following commands:
> ./recipe02_example01
...
> ./recipe02_example02
...
> ./recipe02_example03
...
> ./recipe02_example04
...
> ./recipe02_example05
...
In the next section, we will go through each of these examples and explain what each example program does and how it relates to the lessons that are being taught in this recipe.