trainings/AdvancedCppV2/Presentation/exercises/converter
2024-04-26 16:03:17 +02:00
..
solution AdvC++ - pierwszy commit 2024-04-25 09:39:28 +02:00
CMakeLists.txt AdvC++ - pierwszy commit 2024-04-25 09:39:28 +02:00
converter.cpp AdvC++ - converter zrobiony przez wykładowcę bo brak czasu 2024-04-26 16:03:17 +02:00
README.md AdvC++ - pierwszy commit 2024-04-25 09:39:28 +02:00

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...)