trainings/AdvancedCppV2/Presentation/exercises/converter/README.md

609 B

Linux compilation

> mkdir build
> cd build
> cmake -DCMAKE_BUILD_TYPE=Debug ..
> make

Valgrind usage

> valgrind valgrind_params path/to/binary binary_params, eg:
> valgrind --leak-check=full ./Converter
> or full output using command: valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-out.txt ./Converter

Converter exapmle

  1. Compile and run Converter application and check memory leaks under valgrind
  2. Fix code using std::unique_ptr and std::make_unique
  3. Find other issues and fix them (use good practise etc...)