C++: Difference between revisions
Line 643: | Line 643: | ||
** I.e. each object should manage it's own memory rather than the caller having to manage it. | ** I.e. each object should manage it's own memory rather than the caller having to manage it. | ||
** You should never use `malloc` and `free` unless interfacing with C libraries. | ** You should never use `malloc` and `free` unless interfacing with C libraries. | ||
* | * Avoid the use of new and delete, instead using vector or smart pointers. | ||
* Use clang-format. | * Use clang-format. | ||