C++: Difference between revisions

Line 544: Line 544:
* Use RAII principles.
* Use RAII principles.
* Use smart pointers instead of new and delete.
* Use smart pointers instead of new and delete.
** Namely, <code>std::make_unique</code> and <code>std::shared_ptr</code>.
** Or <code>std::vector<char></code> if you just need some memory in the heap.
* Use clang-format.
* Use clang-format.